.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%)}[data-theme=dark] .login-page{background:linear-gradient(135deg,#1a1a2e,#0d0d1a)}.login-container{background:var(--card);border-radius:var(--radius-lg, 12px);box-shadow:var(--shadow-xl);padding:48px 40px;width:100%;max-width:420px;border:1px solid var(--border)}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:28px;color:var(--foreground);margin:0 0 8px}.login-header p{color:var(--muted-foreground);margin:0}.login-error{background:var(--destructive-light);border:1px solid var(--destructive);color:var(--destructive);padding:12px 16px;border-radius:var(--radius-sm, 6px);margin-bottom:24px;font-size:14px}.login-form .form-group{margin-bottom:20px}.login-form label{display:block;font-weight:500;color:var(--foreground);margin-bottom:8px;font-size:14px}.login-form input{width:100%;padding:12px 16px;border:1px solid var(--input, var(--border));border-radius:var(--radius-sm, 6px);font-size:15px;transition:border-color var(--transition-fast, .2s),box-shadow var(--transition-fast, .2s);box-sizing:border-box;background:var(--background);color:var(--foreground)}.login-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light, rgba(0, 136, 204, .1))}.login-form input::placeholder{color:var(--muted-foreground)}.login-button{width:100%;padding:12px 24px;background:var(--primary);color:var(--primary-foreground);border:none;border-radius:var(--radius-sm, 6px);font-size:16px;font-weight:600;cursor:pointer;transition:background var(--transition-fast, .2s);margin-top:8px}.login-button:hover:not(:disabled){background:var(--primary-hover)}.login-button:disabled{background:var(--muted);color:var(--muted-foreground);cursor:not-allowed}@media (max-width: 480px){.login-container{padding:32px 24px;margin:16px}.login-header h1{font-size:24px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--overlay-bg, rgba(0, 0, 0, .5));-webkit-backdrop-filter:var(--overlay-backdrop, blur(4px));backdrop-filter:var(--overlay-backdrop, blur(4px));display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .2s ease}.modal-content{background:var(--card);border-radius:var(--radius-lg, 12px);width:90%;max-width:450px;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-xl);border:1px solid var(--border);animation:slideUp .3s ease}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid var(--border)}.modal-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:var(--radius-sm, 6px);font-size:1.5rem;color:var(--muted-foreground);cursor:pointer;transition:all var(--transition-fast, .2s);line-height:1;padding:0}.change-password-form{padding:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:500;color:var(--foreground)}.form-group input{width:100%;padding:.75rem;border:1px solid var(--input, var(--border));border-radius:var(--radius-sm, 6px);font-size:.875rem;transition:all var(--transition-fast, .2s);box-sizing:border-box;background:var(--background);color:var(--foreground)}.form-group input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light, rgba(0, 136, 204, .1))}.form-group input:disabled{background:var(--muted);cursor:not-allowed;color:var(--muted-foreground)}.form-group input::placeholder{color:var(--muted-foreground)}.error-message{padding:.75rem;background:var(--destructive-light);border:1px solid var(--destructive);border-radius:var(--radius-sm, 6px);color:var(--destructive);font-size:.875rem;margin-bottom:1rem;animation:shake .3s ease}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.success-message{padding:.75rem;background:var(--success-light);border:1px solid var(--success);border-radius:var(--radius-sm, 6px);color:var(--success);font-size:.875rem;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}.success-message:before{content:"";font-weight:700;font-size:1.25rem}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}.btn-cancel,.btn-submit{padding:.625rem 1.25rem;border:none;border-radius:var(--radius-sm, 6px);font-size:.875rem;font-weight:500;cursor:pointer;transition:all var(--transition-fast, .2s)}.btn-cancel{background:var(--muted);color:var(--muted-foreground)}.btn-cancel:hover:not(:disabled){background:var(--accent);color:var(--foreground)}.btn-submit{background:var(--primary);color:var(--primary-foreground)}.btn-submit:hover:not(:disabled){background:var(--primary-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-cancel:disabled,.btn-submit:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 768px){.modal-content{width:95%;max-width:none;margin:1rem}.modal-header{padding:1rem}.modal-close{width:44px;height:44px;min-width:44px;min-height:44px}.change-password-form{padding:1rem}.form-group input{font-size:16px;min-height:44px;padding:.875rem}.modal-actions{flex-direction:column-reverse}.btn-cancel,.btn-submit{width:100%;padding:.875rem;min-height:44px;font-size:1rem}}.latest-purchases-modal{max-width:550px}.purchase-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-radius:var(--radius);background:var(--success-light);border-left:4px solid var(--success);transition:all var(--transition-fast);text-decoration:none;color:inherit}.purchase-item.clickable{cursor:pointer}.purchase-item.clickable:hover{background:var(--success-light);transform:translate(4px);box-shadow:var(--shadow-md)}.purchase-item:visited{color:inherit}.purchase-info{display:flex;flex-direction:column;gap:.3rem;flex:1}.purchase-chat-title{font-weight:700;color:var(--foreground);font-size:1rem}.purchase-date{font-size:.75rem;color:var(--muted-foreground)}.purchase-seller{font-weight:500;color:var(--muted-foreground);font-size:.85rem}.purchase-details{display:flex;flex-direction:column;align-items:flex-end;gap:.3rem}.purchase-stars{font-weight:700;color:var(--warning);font-size:1.1rem;display:flex;align-items:center;gap:.2rem}.purchase-status{font-size:.7rem;text-transform:uppercase;font-weight:600;padding:3px 8px;border-radius:var(--radius-sm)}@media (max-width: 768px){.latest-purchases-modal{max-width:95%}.purchase-item{flex-direction:column;align-items:flex-start;gap:.75rem}.purchase-details{width:100%;flex-direction:row;justify-content:space-between;align-items:center}}.shift-indicator{position:relative;display:inline-flex;align-items:center;margin-right:12px;cursor:pointer}.shift-status{display:flex;align-items:center;gap:6px;padding:5px 10px;background:var(--muted);border-radius:6px;border:1px solid var(--border);transition:all .2s ease}.shift-indicator:hover .shift-status{background:var(--accent);border-color:var(--ring)}.shift-dot{width:8px;height:8px;border-radius:50%;transition:all .3s ease}.shift-dot.active{background:#22c55e;box-shadow:0 0 6px #22c55e80;animation:pulse 2s infinite}.shift-dot.inactive{background:var(--muted-foreground)}@keyframes pulse{0%,to{box-shadow:0 0 6px #22c55e80}50%{box-shadow:0 0 10px #22c55eb3}}.shift-label{font-size:11px;font-weight:600;letter-spacing:.3px;color:var(--foreground);white-space:nowrap}.shift-tooltip{position:absolute;top:calc(100% + 10px);left:50%;transform:translate(-50%);z-index:1000;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;pointer-events:none}.shift-indicator:hover .shift-tooltip{opacity:1;visibility:visible}.shift-tooltip-content{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;min-width:220px;box-shadow:0 8px 24px #00000026}.shift-tooltip-content:before{content:"";position:absolute;top:-6px;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid var(--border)}.shift-tooltip-content h4{margin:0 0 10px;font-size:14px;font-weight:600;color:var(--foreground);border-bottom:1px solid var(--border);padding-bottom:8px}.shift-time{font-size:13px;color:var(--foreground);margin-bottom:8px;font-family:Courier New,monospace;font-weight:500}.shift-days{font-size:12px;color:var(--muted-foreground);margin-bottom:8px;line-height:1.5}.shift-current-time{font-size:11px;color:var(--muted-foreground);margin-top:8px;padding-top:8px;border-top:1px solid var(--border);font-family:Courier New,monospace}.shift-indicator.warning .shift-dot.warning{background:#f59e0b!important;box-shadow:0 0 12px #f59e0bcc!important;animation:warning-pulse 2s infinite!important}@keyframes warning-pulse{0%,to{box-shadow:0 0 12px #f59e0bcc}50%{box-shadow:0 0 20px #f59e0b}}.warning-badge{font-size:14px;margin-left:4px;animation:bounce 1s infinite}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}.activity-warning{background:#fef3c7;border:1px solid #f59e0b;border-radius:6px;padding:10px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.activity-warning .warning-icon{font-size:16px;flex-shrink:0}.activity-warning .warning-text{color:#92400e;font-weight:600;font-size:12px;line-height:1.4}@media (max-width: 768px){.shift-indicator{margin-right:12px}.shift-status{padding:5px 10px}.shift-label{font-size:11px}.shift-tooltip-content{min-width:200px;padding:10px 14px}}.header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1.25rem;background:var(--card);border-bottom:1px solid var(--border);color:var(--foreground);position:relative;z-index:100;min-height:52px;transition:background-color var(--transition-slow, .3s ease),border-color var(--transition-slow, .3s ease)}.header-user{background:var(--header-bg-user, #0088cc);border-bottom-color:var(--header-border-user, #0077b3);color:var(--header-text, #ffffff)}.header-admin{background:var(--header-bg-admin, #1a1a1a);border-bottom-color:var(--header-border-admin, #333333);color:var(--header-text, #ffffff)}.header-user .hamburger-btn,.header-admin .hamburger-btn{background:#ffffff26;border-color:#fff3}.header-user .hamburger-btn:hover,.header-admin .hamburger-btn:hover{background:#ffffff40}.header-user .hamburger-icon,.header-user .hamburger-icon:before,.header-user .hamburger-icon:after,.header-admin .hamburger-icon,.header-admin .hamburger-icon:before,.header-admin .hamburger-icon:after{background:#fff}.header-user .nav-btn,.header-user .admin-btn,.header-admin .nav-btn,.header-admin .admin-btn{background:#ffffff26;border-color:#fff3;color:#ffffffe6!important}.header-user .nav-btn svg,.header-user .admin-btn svg,.header-admin .nav-btn svg,.header-admin .admin-btn svg{stroke:#ffffffe6!important}.header-user .nav-btn:hover,.header-user .admin-btn:hover,.header-admin .nav-btn:hover,.header-admin .admin-btn:hover{background:#ffffff40;border-color:#ffffff4d;color:#fff!important}.header-user .nav-btn:hover svg,.header-user .admin-btn:hover svg,.header-admin .nav-btn:hover svg,.header-admin .admin-btn:hover svg{stroke:#fff!important}.header-user .nav-btn.active,.header-user .admin-btn.active,.header-admin .nav-btn.active,.header-admin .admin-btn.active{background:#ffffff4d;border-color:#fff6;color:#fff!important}.header-user .nav-btn.active svg,.header-user .admin-btn.active svg,.header-admin .nav-btn.active svg,.header-admin .admin-btn.active svg{stroke:#fff!important}.header-user .account-selector,.header-admin .account-selector{background:#ffffff26;border-color:#fff3}.header-user .account-selector:hover,.header-admin .account-selector:hover{border-color:#ffffff4d}.header-user .account-selector label,.header-admin .account-selector label{color:#fffc}.header-user .account-selector select,.header-admin .account-selector select{background:#ffffff1a;color:#fff}.header-user .account-selector select:hover,.header-admin .account-selector select:hover{background:#fff3}.header-user .account-selector select option,.header-admin .account-selector select option{background:var(--card);color:var(--foreground)}.header-user .user-menu,.header-admin .user-menu{border-left-color:#fff3}.header-user .user-menu-trigger,.header-admin .user-menu-trigger{background:#ffffff26;border-color:#fff3}.header-user .user-menu-trigger:hover,.header-admin .user-menu-trigger:hover{background:#ffffff40;border-color:#ffffff4d}.header-user .user-email,.header-admin .user-email{color:#fff}.header-user .dropdown-arrow,.header-admin .dropdown-arrow{color:#ffffffb3}.header-user .user-menu-trigger:hover .dropdown-arrow,.header-admin .user-menu-trigger:hover .dropdown-arrow{color:#fff}.header-user .persona-badge,.header-admin .persona-badge{background:#ffffff26;border-color:#fff3}.header-user .persona-badge:hover,.header-admin .persona-badge:hover{background:#ffffff40;border-color:#ffffff4d}.header-user .persona-summary,.header-admin .persona-summary{color:#fff}.header-left{display:flex;align-items:center;gap:.75rem;position:relative;z-index:1}.header-left h1{font-size:1.375rem;font-weight:700;letter-spacing:-.02em}.hamburger-btn{display:none;width:36px;height:36px;background:var(--muted);border:1px solid var(--border);cursor:pointer;padding:6px;border-radius:8px;transition:all .2s ease}.hamburger-btn:hover{background:var(--accent)}.hamburger-icon{display:block;position:relative;width:18px;height:2px;background:var(--foreground);border-radius:2px;transition:all .2s ease}.hamburger-icon:before,.hamburger-icon:after{content:"";position:absolute;width:18px;height:2px;background:var(--foreground);border-radius:2px;left:0;transition:transform .2s ease}.hamburger-icon:before{top:-6px}.hamburger-icon:after{top:6px}.header-right{display:flex;align-items:center;gap:.75rem;position:relative;z-index:1}.header-nav{display:flex;align-items:center;gap:4px}.nav-btn,.admin-btn{position:relative;width:32px;height:32px;padding:0;background:var(--muted);color:var(--muted-foreground)!important;border:1px solid var(--border);border-radius:6px;font-size:1rem;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-decoration:none}.nav-btn:visited,.admin-btn:visited{color:var(--muted-foreground)!important}.nav-btn svg,.admin-btn svg{stroke:var(--muted-foreground)!important;stroke-width:2;fill:none;display:block;width:16px;height:16px}.nav-btn:hover,.admin-btn:hover{background:#08c;border-color:#08c;color:#fff!important}.nav-btn:hover svg,.admin-btn:hover svg{stroke:#fff!important}.nav-btn:active,.admin-btn:active{transform:scale(.95)}.nav-btn.active,.admin-btn.active{background:#08c;border-color:#08c;color:#fff!important}.nav-btn.active svg,.admin-btn.active svg{stroke:#fff!important}.account-selector{display:flex;align-items:center;gap:.5rem;padding:.375rem .625rem;background:var(--muted);border-radius:6px;border:1px solid var(--border);transition:all .15s ease}.account-selector:hover{border-color:var(--ring)}.account-selector label{font-size:.7rem;font-weight:600;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}.account-selector select{padding:.25rem .5rem;border:none;border-radius:4px;background:var(--background);color:var(--foreground);font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s ease}.account-selector select:hover{background:var(--accent)}.account-selector select:focus{outline:none;box-shadow:0 0 0 2px #08c3}.account-selector select option{background:var(--background);color:var(--foreground);font-weight:500}.user-menu{position:relative;display:flex;align-items:center;gap:.5rem;padding-left:.75rem;border-left:1px solid var(--border)}.user-menu-trigger{display:flex;align-items:center;gap:.375rem;padding:.375rem .625rem;background:var(--muted);border-radius:6px;border:1px solid var(--border);cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.user-menu-trigger:hover{background:var(--accent);border-color:var(--ring)}.user-email{font-size:.8rem;font-weight:500;color:var(--foreground);white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}.user-icon-fallback{display:none;align-items:center;justify-content:center}.user-icon-fallback svg{stroke:var(--foreground);stroke-width:2}.header-user .user-icon-fallback svg,.header-admin .user-icon-fallback svg{stroke:#fff}.dropdown-arrow{font-size:.5rem;color:var(--muted-foreground);transition:color .15s ease}.user-menu-trigger:hover .dropdown-arrow{color:var(--foreground)}.user-dropdown{position:absolute;top:calc(100% + .5rem);right:0;min-width:200px;background:var(--card);border-radius:10px;box-shadow:0 8px 32px #0000002e,0 2px 8px #0000001a;border:1px solid var(--border);overflow:hidden;z-index:1000;animation:dropdown-enter .15s ease;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}@keyframes dropdown-enter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{width:100%;display:flex;align-items:center;gap:.625rem;padding:.625rem 1rem;background:transparent;border:none;color:var(--foreground);font-size:.8rem;font-weight:500;cursor:pointer;transition:background .1s ease;text-align:left;text-decoration:none}.dropdown-item:hover{background:var(--muted)}.dropdown-icon{font-size:1rem;opacity:.75;stroke:currentColor;stroke-width:2;fill:none;color:var(--muted-foreground);flex-shrink:0;width:16px;height:16px}.dropdown-divider{height:1px;background:var(--border);margin:.25rem 0}.logout-item{color:var(--destructive)}.logout-item:hover{background:#ef444414}.logout-btn{padding:.5rem 1rem;background:var(--muted);color:var(--foreground);border:none;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap}.logout-btn:hover{background:var(--accent)}.account-switcher{position:relative;display:flex;align-items:center}.account-switcher-trigger{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:#ffffff26;border-radius:8px;border:1px solid rgba(255,255,255,.2);transition:all .15s ease;-webkit-user-select:none;user-select:none;font-family:inherit;font-size:inherit;color:inherit;cursor:default;-webkit-appearance:none;-moz-appearance:none;appearance:none}.account-switcher-trigger.clickable{cursor:pointer}.account-switcher-trigger.clickable:hover{background:#ffffff40;border-color:#ffffff4d}.account-switcher-trigger.clickable:active{transform:scale(.98)}.account-icon{color:#fff;flex-shrink:0;opacity:.9}.account-name{font-size:.8rem;font-weight:500;color:#fff;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}.account-chevron{color:#ffffffb3;transition:transform .2s ease;flex-shrink:0}.account-chevron.open{transform:rotate(180deg)}.account-dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:220px;background:var(--card);border-radius:10px;box-shadow:0 8px 32px #0000002e,0 2px 8px #0000001a;border:1px solid var(--border);overflow:hidden;z-index:1000;animation:dropdown-enter .15s ease;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.account-dropdown-item{width:100%;display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:transparent;border:none;color:var(--foreground);font-size:.875rem;font-weight:500;cursor:pointer;transition:background .1s ease;text-align:left;-webkit-appearance:none;-moz-appearance:none;appearance:none}.account-dropdown-item:hover{background:var(--muted)}.account-dropdown-item.active{background:var(--primary-light, rgba(0, 136, 204, .1))}.account-dropdown-icon{color:var(--muted-foreground);flex-shrink:0}.account-dropdown-item.active .account-dropdown-icon{color:var(--primary)}.account-dropdown-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-dropdown-check{color:var(--primary, #0088cc);flex-shrink:0}.persona-badge{position:relative;display:flex;align-items:center;gap:.375rem;padding:.375rem .625rem;background:#0088cc1a;border-radius:6px;border:1px solid rgba(0,136,204,.2);cursor:default;transition:all .15s ease}.persona-badge:hover{background:#0088cc26;border-color:#0088cc4d}.persona-icon{font-size:.9rem}.persona-summary{font-size:.75rem;color:var(--foreground);font-weight:500;white-space:nowrap;line-height:1.2;max-width:180px;overflow:hidden;text-overflow:ellipsis}.persona-tooltip{position:absolute;top:calc(100% + 8px);left:0;min-width:260px;background:var(--card);border-radius:10px;box-shadow:0 8px 32px #0000002e,0 2px 8px #0000001a;border:1px solid var(--border);z-index:999;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s ease,visibility .15s ease,transform .15s ease;pointer-events:none;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.persona-tooltip:after{content:"";position:absolute;top:-12px;left:0;right:0;height:12px;background:transparent}.persona-badge:hover .persona-tooltip,.account-switcher:hover .persona-tooltip,.persona-tooltip:hover,.persona-tooltip.visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.account-switcher:has(.account-dropdown) .persona-tooltip,.account-switcher:has(.account-dropdown) .persona-tooltip.visible{opacity:0!important;visibility:hidden!important;pointer-events:none!important}.info-badge{position:absolute;top:-2px;right:-2px;width:8px;height:8px;background:#ff4757;border-radius:50%;border:2px solid rgba(255,255,255,.9);animation:pulse-badge 2s ease-in-out infinite;z-index:10}@keyframes pulse-badge{0%,to{transform:scale(1);box-shadow:0 0 #ff475766}50%{transform:scale(1.1);box-shadow:0 0 0 4px #ff475700}}.persona-tooltip:before{content:"";position:absolute;top:-6px;left:24px;width:12px;height:12px;background:var(--card);border:1px solid var(--border);border-bottom:none;border-right:none;transform:rotate(45deg);z-index:1}.persona-tooltip-content{padding:.75rem 1rem}.persona-tooltip-row{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:.35rem 0}.persona-tooltip-row:first-child{padding-top:0}.persona-tooltip-row:last-child{padding-bottom:0}.persona-label{font-size:.8125rem;color:var(--muted-foreground);font-weight:500;white-space:nowrap}.persona-value{font-size:.8125rem;color:var(--foreground);font-weight:500;text-align:right}.persona-tooltip-background{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}.persona-tooltip-background .persona-label{display:block;margin-bottom:.25rem}.persona-background-text{margin:0;font-size:.8125rem;color:var(--foreground);font-weight:400;line-height:1.5}.venice-token-warning{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:linear-gradient(135deg,#ef4444,#dc2626);border-radius:8px;border:1px solid rgba(255,255,255,.2);box-shadow:0 1px 8px #ef444440}.venice-token-warning .warning-icon{font-size:1rem}.venice-token-warning .warning-text{font-size:.75rem;font-weight:600;color:#fff;white-space:nowrap}.venice-token-warning .renew-btn{padding:.25rem .625rem;background:#fff;color:#dc2626;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .15s ease;white-space:nowrap}.venice-token-warning .renew-btn:hover:not(:disabled){background:#fef2f2;transform:translateY(-1px)}.venice-token-warning .renew-btn:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 768px){.header{padding:.5rem 1rem}.hamburger-btn{display:flex;align-items:center;justify-content:center}.header-left{gap:.5rem}.header-left h1{font-size:1rem}.header-right{gap:.5rem}.header-nav{gap:.25rem}.nav-btn,.admin-btn{width:36px;height:36px;min-width:36px;min-height:36px;font-size:1rem}.account-selector{padding:.25rem .5rem}.account-selector label{font-size:.65rem}.account-selector select{padding:.25rem .5rem;font-size:.75rem}.user-email{font-size:.75rem;max-width:100px}.user-dropdown{right:0;min-width:180px}.persona-badge{padding:.25rem .5rem}.persona-summary{font-size:.7rem;max-width:120px}.persona-tooltip{left:-50px;min-width:240px}.persona-tooltip:before{left:70px}.account-switcher-trigger{padding:.25rem .5rem}.account-name{font-size:.75rem;max-width:100px}.account-dropdown{min-width:200px}.venice-token-warning{padding:.25rem .5rem;gap:.375rem}.venice-token-warning .warning-text{font-size:.7rem}.venice-token-warning .renew-btn{padding:.25rem .5rem;font-size:.7rem}}@media (max-width: 480px){.header{flex-direction:row;gap:.5rem;align-items:center;padding:.5rem .75rem}.header-right{gap:.375rem}.header-nav{gap:2px}.nav-btn,.admin-btn{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:6px}.nav-btn svg,.admin-btn svg{width:16px;height:16px}.hamburger-btn{width:36px;height:36px;min-width:36px;min-height:36px}.account-selector{display:none}.user-menu{gap:.375rem;padding-left:.5rem}.user-menu-trigger{padding:.375rem .625rem;min-height:36px}.user-dropdown{right:0;min-width:160px}.user-email{display:none}.user-icon-fallback{display:flex}.persona-badge{display:none}.account-switcher-trigger{padding:.25rem .5rem}.account-name{display:none}.account-icon{font-size:1.1rem}.account-dropdown{left:auto;right:0;min-width:180px}}.chat-list{display:flex;flex-direction:column}.chat-list-empty{padding:2rem;text-align:center;color:var(--muted-foreground)}.chat-item{padding:1rem 1.5rem;border-bottom:1px solid var(--border-light, var(--border));cursor:pointer;transition:background-color var(--transition-fast, .2s);text-decoration:none;color:inherit;display:block}.chat-item:hover{background-color:var(--sidebar-item-hover, var(--muted))}.chat-item:visited{color:inherit}.chat-item.active{background-color:var(--sidebar-item-active, var(--primary-light))}.chat-item-content{display:flex;flex-direction:column;gap:.25rem}.chat-item-header{display:flex;justify-content:space-between;align-items:baseline}.chat-title-container{display:flex;align-items:center;gap:.5rem}.chat-title{font-size:.95rem;font-weight:600;color:var(--foreground);margin:0}.schedule-btn{background:none;border:none;cursor:pointer;font-size:1rem;padding:.15rem .3rem;border-radius:var(--radius-xs, 4px);transition:background-color var(--transition-fast, .2s);line-height:1}.schedule-btn:hover{background-color:var(--primary-light)}.chat-time-container{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem}.chat-time{font-size:.75rem;color:var(--muted-foreground)}.chat-stars{font-size:.7rem;color:var(--warning);font-weight:600}.turn-badge{font-size:.7rem;font-weight:600;padding:.2rem .5rem;border-radius:10px;text-transform:uppercase;letter-spacing:.3px}.your-turn{background-color:var(--success);color:var(--success-foreground, white)}.his-turn{background-color:var(--warning);color:var(--warning-foreground, white)}.status-badge-wrapper{position:relative;display:inline-block}.status-badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;font-weight:600;padding:.2rem .5rem;border-radius:10px;cursor:pointer;transition:all var(--transition-fast, .2s);white-space:nowrap;-webkit-user-select:none;user-select:none}.status-badge:hover{transform:scale(1.05);box-shadow:var(--shadow-md)}.status-circle{width:8px;height:8px;border-radius:50%;background-color:currentColor;opacity:.9}.status-badge-none,.status-none{background-color:var(--muted);color:var(--muted-foreground);font-size:.9rem;padding:.15rem .5rem}.status-whale{background-color:#5856d6;color:#fff}.status-customer{background-color:#007aff;color:#fff}.status-potential{background-color:var(--success);color:#fff}.status-cheap{background-color:var(--warning);color:#fff}.status-stop{background-color:var(--destructive);color:#fff}.status-dropdown{position:absolute;top:calc(100% + 4px);left:0;background:var(--card);border-radius:var(--radius, 8px);box-shadow:var(--shadow-lg);border:1px solid var(--border);z-index:100;min-width:140px;padding:.25rem}.status-option{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;background:none;cursor:pointer;font-size:.85rem;font-weight:500;border-radius:var(--radius-sm, 6px);transition:background-color var(--transition-fast, .15s);text-align:left;color:var(--foreground)!important}.status-option:hover{background-color:var(--muted)}.status-option .status-label{color:var(--foreground)}.status-circle-indicator{width:12px;height:12px;border-radius:50%;flex-shrink:0}.status-circle-indicator.status-whale{background-color:#5856d6}.status-circle-indicator.status-customer{background-color:#007aff}.status-circle-indicator.status-potential{background-color:var(--success)}.status-circle-indicator.status-cheap{background-color:var(--warning)}.status-circle-indicator.status-stop{background-color:var(--destructive)}.status-option.status-clear{color:var(--muted-foreground);border-top:1px solid var(--border);margin-top:.25rem;padding-top:.5rem}.status-option.status-clear:hover{background-color:var(--destructive-light);color:var(--destructive)}.language-badge-wrapper{position:relative;display:inline-block}.language-badge{display:inline-flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:700;padding:.15rem .35rem;border-radius:var(--radius-xs, 4px);cursor:pointer;transition:all var(--transition-fast, .2s);-webkit-user-select:none;user-select:none;min-width:22px;text-transform:uppercase;letter-spacing:.5px}.language-badge:hover{transform:scale(1.05)}.language-badge.lang-tr{background-color:#e81224;color:#fff}.language-badge.lang-en{background-color:#012169;color:#fff}.language-badge.lang-none{background-color:var(--muted);color:var(--muted-foreground)}.lang-dropdown{position:absolute;top:calc(100% + 4px);left:50%;transform:translate(-50%);background:var(--card);border-radius:var(--radius-sm, 6px);box-shadow:var(--shadow-lg);border:1px solid var(--border);z-index:100;padding:.2rem;display:flex;gap:.15rem}.lang-option{padding:.3rem .5rem;border:none;background:var(--muted);cursor:pointer;font-size:.7rem;font-weight:700;border-radius:var(--radius-xs, 4px);transition:all var(--transition-fast, .15s);color:var(--foreground);min-width:28px}.lang-option:hover{background-color:var(--accent)}.lang-option.active{background-color:var(--primary);color:var(--primary-foreground)}.chat-item-preview{display:flex;align-items:center}.chat-message{font-size:.85rem;color:var(--muted-foreground);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-message .sender{font-weight:500;color:var(--primary)}.chat-loader{padding:1rem;text-align:center;color:var(--muted-foreground);font-size:.9rem;min-height:50px}.load-more-btn{background-color:var(--primary);color:var(--primary-foreground);border:none;padding:.75rem 1.5rem;border-radius:var(--radius-sm, 6px);font-size:.9rem;font-weight:500;cursor:pointer;transition:background-color var(--transition-fast, .2s)}.load-more-btn:hover:not(:disabled){background-color:var(--primary-hover)}.load-more-btn:disabled{background-color:var(--muted);color:var(--muted-foreground);cursor:not-allowed}.chat-list-end{padding:1rem;text-align:center;color:var(--muted-foreground);font-size:.85rem;border-top:1px solid var(--border)}@media (max-width: 768px){.chat-item{padding:1rem;min-height:60px}.chat-title{font-size:.9rem}.chat-message{font-size:.8rem}.chat-time{font-size:.7rem}.chat-stars{font-size:.65rem}.turn-badge,.status-badge{font-size:.65rem;padding:.15rem .4rem}.status-dropdown{min-width:120px}.status-option{font-size:.8rem;padding:.4rem .6rem}.language-badge{font-size:.6rem;padding:.1rem .25rem;min-width:18px}.lang-option{font-size:.65rem;padding:.25rem .4rem;min-width:24px}}@media (max-width: 480px){.chat-item{padding:.875rem 1rem}}.search-bar{position:relative;margin:.75rem 1rem}.search-input{width:100%;padding:.6rem 2.5rem .6rem .75rem;border:1px solid var(--input, var(--border));border-radius:var(--radius, 8px);font-size:.9rem;outline:none;transition:border-color var(--transition-fast, .2s),box-shadow var(--transition-fast, .2s);background:var(--background);color:var(--foreground)}.search-input:focus{border-color:var(--input-focus, var(--primary));box-shadow:0 0 0 2px var(--primary-light, rgba(0, 136, 204, .1))}.search-clear-btn{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--muted-foreground);cursor:pointer;font-size:1.2rem;padding:.25rem .5rem;border-radius:var(--radius-xs, 4px);transition:background-color var(--transition-fast, .2s),color var(--transition-fast, .2s)}.search-clear-btn:hover{background-color:var(--muted);color:var(--foreground)}@media (max-width: 768px){.search-bar{margin:.5rem .75rem}.search-input{font-size:.85rem;padding:.5rem 2.25rem .5rem .75rem}}.modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--overlay-bg);-webkit-backdrop-filter:var(--overlay-backdrop);backdrop-filter:var(--overlay-backdrop);display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:var(--card);border-radius:var(--radius-lg);max-width:600px;width:90%;max-height:80vh;display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border:1px solid var(--border)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.modal-header h2{margin:0;font-size:1.25rem;color:var(--foreground)}.modal-close{background:none;border:none;font-size:2rem;cursor:pointer;color:var(--muted-foreground);padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;line-height:1;transition:color var(--transition-fast);border-radius:var(--radius-sm)}.modal-close:hover{color:var(--foreground);background:var(--muted)}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.loading-text,.empty-text{text-align:center;color:var(--muted-foreground);padding:2rem}.posts-list{display:flex;flex-direction:column;gap:1rem}.post-item{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;background:var(--muted)}.post-view{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.post-info{flex:1;display:flex;flex-direction:column;gap:.5rem}.post-time{font-weight:600;color:var(--primary);font-size:.95rem}.post-caption{color:var(--foreground);font-size:.9rem;white-space:pre-wrap}.post-stars{color:var(--warning);font-size:.85rem;font-weight:600}.post-media-count{color:var(--muted-foreground);font-size:.85rem}.post-actions{display:flex;gap:.5rem;flex-shrink:0}.btn-edit,.btn-delete,.btn-save,.btn-cancel-edit{padding:.5rem 1rem;border:none;border-radius:var(--radius);cursor:pointer;font-size:.85rem;font-weight:500;transition:all var(--transition-fast)}.btn-edit{background-color:var(--primary);color:var(--primary-foreground)}.btn-edit:hover{background-color:var(--primary-hover)}.btn-delete{background-color:var(--destructive);color:var(--destructive-foreground)}.btn-delete:hover{background-color:var(--destructive-hover)}.btn-save{background-color:var(--success);color:var(--success-foreground)}.btn-save:hover{background-color:var(--success-hover)}.btn-cancel-edit{background-color:var(--muted);color:var(--foreground)}.btn-cancel-edit:hover{background-color:var(--accent)}.post-edit-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{font-size:.85rem;font-weight:600;color:var(--muted-foreground)}.form-group input,.form-group textarea{padding:.6rem;border:1px solid var(--input);border-radius:var(--radius);font-size:.9rem;font-family:inherit;background:var(--background);color:var(--foreground)}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.form-actions{display:flex;gap:.5rem;margin-top:.5rem}@media (max-width: 768px){.modal-content{max-width:95%;max-height:90vh}.modal-header{padding:1rem}.modal-close{width:44px;height:44px;min-width:44px;min-height:44px}.modal-body{padding:1rem}.post-view{flex-direction:column}.post-actions{width:100%;justify-content:flex-end}.btn-edit,.btn-delete,.btn-save,.btn-cancel-edit{min-height:44px;padding:.75rem 1.25rem;font-size:1rem}.form-group input,.form-group textarea{font-size:16px;min-height:44px;padding:.75rem}}.sidebar{width:320px;display:flex;flex-direction:column;background:var(--sidebar-bg, var(--card));border-right:1px solid var(--sidebar-border, var(--border))}.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border)}.sidebar-header h2{font-size:1.1rem;font-weight:600;color:var(--foreground)}.chat-count{background:var(--primary);color:var(--primary-foreground);padding:.25rem .5rem;border-radius:var(--radius-full, 12px);font-size:.8rem;font-weight:600}.sidebar-content{flex:1;overflow-y:auto}.sidebar-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted-foreground);font-size:.9rem}@media (max-width: 768px){.sidebar{position:absolute;left:0;top:0;bottom:0;width:280px;z-index:100;box-shadow:var(--shadow-lg, 2px 0 8px rgba(0, 0, 0, .15));transform:translate(-100%);transition:transform .3s ease-in-out}.sidebar.open{transform:translate(0)}.sidebar-header{padding:.75rem 1rem}.sidebar-header h2{font-size:1rem}}.media-library-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.media-library-modal{background:var(--card);border-radius:var(--radius-lg);width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;box-shadow:var(--shadow-lg);position:relative;overflow:hidden;min-width:320px;contain:layout}.media-library-header{display:flex;align-items:center;padding:1.5rem;border-bottom:1px solid var(--border);flex-shrink:0}.media-library-header h2{margin:0;font-size:1.5rem;color:var(--foreground)}.media-count{margin-left:auto;font-size:.9rem;color:var(--muted-foreground);font-weight:500;padding-right:2.5rem}.close-btn-corner{position:absolute;top:1rem;right:1rem;background:var(--muted);border:none;border-radius:50%;font-size:1.5rem;color:var(--muted-foreground);cursor:pointer;padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:10}.close-btn-corner:hover{background:var(--border);color:var(--foreground)}.media-library-filters{display:flex;gap:.5rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border);flex-shrink:0;flex-wrap:wrap}.filter-btn{padding:.5rem 1rem;border:1px solid var(--border);background:var(--card);border-radius:20px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s}.filter-btn:hover{background:var(--muted)}.filter-btn.active{background:var(--primary);color:var(--card);border-color:var(--primary)}.media-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;padding:1.5rem;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;contain:layout style;width:100%;box-sizing:border-box}.load-more-container{display:flex;justify-content:center;padding:1rem 1.5rem;flex-shrink:0}.load-more-btn{padding:.75rem 2rem;border:2px solid var(--primary);background:var(--card);color:var(--primary);border-radius:var(--radius);cursor:pointer;font-size:.95rem;font-weight:600;transition:all .2s}.load-more-btn:hover:not(:disabled){background:var(--primary);color:var(--card)}.load-more-btn:disabled{opacity:.6;cursor:not-allowed}.media-library-item{position:relative;aspect-ratio:1;border-radius:var(--radius);overflow:hidden;border:3px solid transparent;transition:border-color .2s,box-shadow .2s;background:var(--muted);contain:layout style paint;isolation:isolate;min-width:0;min-height:0;width:100%}.media-library-item:hover{box-shadow:var(--shadow-md);border-color:var(--primary-light)}.media-library-item.selected{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-light)}.media-thumbnail{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.media-video-thumbnail video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.media-video-thumbnail{position:absolute;top:0;left:0;width:100%;height:100%}.video-play-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#0009;color:var(--card);width:3rem;height:3rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;padding-left:.2rem}.media-voice-thumbnail{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);cursor:pointer;transition:all .2s}.media-voice-thumbnail:hover{background:linear-gradient(135deg,var(--primary-hover) 0%,#004466 100%)}.media-voice-thumbnail.playing{background:linear-gradient(135deg,#4caf50,#2e7d32);animation:pulse-playing 1.5s ease-in-out infinite}@keyframes pulse-playing{0%,to{box-shadow:inset 0 0 #ffffff1a}50%{box-shadow:inset 0 0 30px 5px #fff3}}.voice-play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#ffffff40;color:var(--card);width:3.5rem;height:3.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;transition:all .2s;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.media-voice-thumbnail:hover .voice-play-btn{background:#fff6;transform:translate(-50%,-50%)}.media-voice-thumbnail.playing .voice-play-btn{background:#ffffff4d}.voice-icon{font-size:1.5rem;margin-top:2.5rem;opacity:.8}.voice-label{color:var(--card);font-weight:600;font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;margin-top:.25rem;opacity:.9}.media-info{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);padding:1.5rem .5rem .5rem;color:var(--card);z-index:1;pointer-events:none}.media-date{font-size:.7rem;margin:0;font-weight:600}.media-chat{font-size:.65rem;margin:.2rem 0 0;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-library-loading,.media-library-error,.media-library-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;text-align:center;color:var(--muted-foreground);flex:1;min-height:200px}.media-library-empty .hint{margin-top:.5rem;font-size:.9rem;color:var(--muted-foreground)}.media-library-error button{margin-top:1rem;padding:.5rem 1.5rem;background:var(--primary);color:var(--card);border:none;border-radius:var(--radius-sm);cursor:pointer;font-size:.9rem}.media-library-error button:hover{background:var(--primary-hover)}.media-library-footer{border-top:1px solid var(--border);padding:1rem 1.5rem;display:flex;justify-content:space-between;align-items:center;background:var(--muted);flex-shrink:0;border-radius:0 0 var(--radius-lg) var(--radius-lg)}.selection-count{margin:0;font-weight:600;color:var(--primary);font-size:1rem}.send-btn{padding:.75rem 1.5rem;border:none;border-radius:var(--radius);cursor:pointer;font-size:1rem;font-weight:600;background:var(--primary);color:var(--card);display:flex;align-items:center;gap:.5rem;transition:all .2s}.send-btn:hover{background:var(--primary-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.send-icon{font-size:1.2rem;transform:translateY(1px)}@media (max-width: 768px){.media-library-modal{max-width:100%;max-height:100vh;border-radius:0}.media-library-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;padding:1rem}.media-library-header{padding:1rem}.media-library-header h2{font-size:1.25rem}.media-library-filters{padding:.75rem 1rem}.filter-btn{padding:.4rem .8rem;font-size:.85rem}.close-btn-corner{top:.75rem;right:.75rem;width:1.75rem;height:1.75rem;font-size:1.25rem}.send-btn{padding:.65rem 1.25rem;font-size:.9rem}}@media (max-width: 480px){.media-library-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.5rem}.video-play-icon{width:2.5rem;height:2.5rem;font-size:1rem}.close-btn-corner{top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;font-size:1.1rem}.send-btn{padding:.6rem 1rem;font-size:.85rem}.send-icon{font-size:1rem}.selection-count{font-size:.9rem}}.selection-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:.5rem;pointer-events:auto;z-index:2;cursor:pointer}.selection-badge-large{background:var(--primary);color:var(--card);width:2.5rem;height:2.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;box-shadow:var(--shadow-md);pointer-events:none}.media-library-item .media-thumbnail,.media-library-item .media-video-thumbnail{cursor:zoom-in}.fullscreen-preview-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000f2;display:flex;align-items:center;justify-content:center;z-index:2000;padding:2rem}.fullscreen-preview-content{position:relative;max-width:95vw;max-height:95vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.fullscreen-close-btn{position:absolute;top:-3rem;right:0;background:none;border:none;color:var(--card);font-size:3rem;cursor:pointer;padding:0;width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;transition:opacity .2s;z-index:10}.fullscreen-close-btn:hover{opacity:.7}.fullscreen-image{max-width:100%;max-height:85vh;object-fit:contain;border-radius:var(--radius)}.fullscreen-video{max-width:100%;max-height:85vh;border-radius:var(--radius)}.fullscreen-caption{margin-top:1rem;padding:1rem 2rem;background:#ffffff1a;color:var(--card);border-radius:var(--radius);max-width:600px;text-align:center}@media (max-width: 768px){.fullscreen-preview-overlay{padding:1rem}.fullscreen-close-btn{top:-2.5rem;font-size:2.5rem}.fullscreen-image,.fullscreen-video{max-height:80vh}}@media (max-width: 480px){.selection-badge-large{width:2rem;height:2rem;font-size:1.2rem}.voice-play-btn{width:2.5rem;height:2.5rem;font-size:1.1rem}.voice-icon{font-size:1.2rem;margin-top:2rem}.voice-label{font-size:.6rem}.media-info{padding:1rem .4rem .4rem}.media-date{font-size:.6rem}.media-chat{font-size:.55rem}}.message-composer{position:relative;border-top:1px solid var(--border);background:var(--card);overflow:hidden;width:100%;min-width:0;flex-shrink:0}.message-composer.dragging{background:var(--primary-light)}.drag-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--primary);display:flex;align-items:center;justify-content:center;z-index:1000;pointer-events:none}.drag-content{text-align:center;color:var(--primary-foreground);pointer-events:none}.drag-icon{font-size:4rem;margin-bottom:1rem;animation:bounce 1s infinite}.drag-text{font-size:1.5rem;font-weight:600;margin-bottom:.5rem}.drag-hint{font-size:1rem;opacity:.9}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.media-form{padding:1rem 1.5rem;background:var(--muted);border-bottom:1px solid var(--border)}.media-controls{display:flex;gap:.5rem;align-items:center}.star-input{width:140px;padding:.5rem;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.9rem;background:var(--background);color:var(--foreground)}.caption-scheduler-row{display:flex;gap:1rem;align-items:center;margin-bottom:.75rem}.caption-input{flex:1;padding:.5rem;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.9rem;background:var(--background);color:var(--foreground)}.btn-send-media{padding:.5rem 1rem;background:var(--primary);color:var(--primary-foreground);border:none;border-radius:var(--radius);font-weight:600;cursor:pointer;transition:all .2s;box-shadow:var(--shadow-sm)}.btn-send-media:hover{background:var(--primary-hover);box-shadow:var(--shadow-md);transform:translateY(-1px)}.btn-cancel{padding:.5rem 1rem;background:var(--muted-foreground);color:var(--background);border:none;border-radius:var(--radius-sm);cursor:pointer}.btn-cancel:hover{filter:brightness(.85)}.composer-form{display:flex;gap:.5rem;padding:1rem 1.5rem;align-items:flex-end}.composer-actions{display:flex;gap:.5rem}.btn-action{width:36px;height:36px;border:none;background:var(--card);border-radius:50%;font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;color:var(--primary);box-shadow:var(--shadow-sm)}.btn-action:hover{background:var(--card);box-shadow:var(--shadow-md);transform:translateY(-1px)}.btn-action:disabled{opacity:.5;cursor:not-allowed}.message-input-wrapper{flex:1;position:relative;display:flex;align-items:flex-end}.message-input{width:100%;padding:.75rem 2.75rem .75rem 1rem;border:1px solid var(--border);border-radius:var(--radius-lg);font-size:.95rem;outline:none;font-family:inherit;line-height:1.4;resize:none;overflow-y:auto;min-height:42px;max-height:150px;background:var(--background);color:var(--foreground)}.message-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.message-input::placeholder{color:var(--muted-foreground)}.emoji-toggle-btn{position:absolute;right:8px;bottom:7px;width:28px;height:28px;border:none;background:transparent;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s;color:var(--muted-foreground)}.emoji-toggle-btn:hover{background:var(--muted)}.emoji-toggle-btn.active{background:var(--border);color:var(--foreground);font-size:1rem;font-weight:700}.emoji-picker-row{padding:.5rem 1rem;background:var(--muted);border-bottom:1px solid var(--border);overflow:hidden;min-width:0;width:100%;box-sizing:border-box}.emoji-scroll-container{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;padding:4px 0;scrollbar-width:thin;scrollbar-color:var(--border) transparent;min-width:0;width:100%}.emoji-scroll-container::-webkit-scrollbar{height:6px}.emoji-scroll-container::-webkit-scrollbar-track{background:transparent}.emoji-scroll-container::-webkit-scrollbar-thumb{background:var(--border);border-radius:var(--radius-sm)}.emoji-scroll-container::-webkit-scrollbar-thumb:hover{background:var(--muted-foreground)}.emoji-btn{flex-shrink:0;width:36px;height:36px;border:none;background:var(--card);border-radius:var(--radius);font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}.emoji-btn:hover{background:var(--primary-light);transform:scale(1.1);z-index:1}.emoji-btn:active{transform:scale(.95)}.btn-send{padding:.75rem 1.5rem;background:var(--primary);color:var(--primary-foreground);border:none;border-radius:var(--radius-lg);font-weight:600;cursor:pointer;transition:all .2s;box-shadow:var(--shadow-sm)}.btn-send:hover:not(:disabled){background:var(--primary-hover);box-shadow:var(--shadow-md);transform:translateY(-1px)}.btn-send:disabled{background:var(--border);cursor:not-allowed}.star-price-control{display:flex;gap:.75rem;align-items:center;margin-bottom:.75rem;padding:.75rem;background:var(--card);border-radius:var(--radius);border:1px solid var(--border)}.price-label{font-weight:600;color:var(--foreground);font-size:.95rem;min-width:50px}.price-adjuster{display:flex;align-items:center;gap:0;border:2px solid var(--primary);border-radius:var(--radius);overflow:hidden;background:var(--card)}.price-btn{width:44px;height:44px;border:none;background:var(--primary);color:var(--primary-foreground);font-size:1.5rem;font-weight:700;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;line-height:1;padding:0}.price-btn:hover:not(:disabled){background:var(--primary-hover)}.price-btn:active:not(:disabled){transform:scale(.95)}.price-btn:disabled{background:var(--border);cursor:not-allowed;opacity:.5}.minus-btn{border-radius:6px 0 0 6px}.plus-btn{border-radius:0 6px 6px 0}.price-display{min-width:100px;padding:0 1rem;font-size:1.1rem;font-weight:600;color:var(--primary);text-align:center;background:var(--card);-webkit-user-select:none;user-select:none}.custom-price-input{width:110px;padding:.625rem .75rem;border:2px solid var(--border);border-radius:var(--radius);font-size:.95rem;font-weight:500;text-align:center;transition:all .2s;background:var(--background);color:var(--foreground)}.custom-price-input:focus{outline:none;border-color:var(--primary);background:var(--primary-light);box-shadow:0 0 0 3px var(--primary-light)}.custom-price-input::placeholder{color:var(--muted-foreground);font-weight:400}.image-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.75rem;margin:1rem 0;padding:1rem;background:var(--card);border-radius:var(--radius);border:1px solid var(--border)}.preview-item{position:relative;aspect-ratio:1;border-radius:var(--radius);overflow:hidden;background:var(--muted);border:2px solid var(--border)}.preview-item img{width:100%;height:100%;object-fit:cover}.voice-preview{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.75rem;gap:.5rem;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%)}.voice-icon-large{font-size:2.5rem}.voice-label-small{color:var(--primary-foreground);font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;text-align:center}.voice-preview audio{max-width:100%}.remove-btn{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;border:none;background:#000000b3;color:var(--card);font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.remove-btn:hover{background:#f00c}.add-more-btn{aspect-ratio:1;border:2px dashed var(--primary);background:var(--primary-light);border-radius:var(--radius);color:var(--primary);font-weight:600;font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.add-more-btn:hover{filter:brightness(.95);border-color:var(--primary-hover)}.add-more-btn:disabled{opacity:.5;cursor:not-allowed}.media-select-buttons{display:flex;gap:.75rem;margin-bottom:.75rem}.btn-select-images{flex:1;padding:.75rem;border:2px dashed var(--primary);background:var(--primary-light);color:var(--primary);border-radius:var(--radius);font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s}.btn-select-images:hover{filter:brightness(.95);border-color:var(--primary-hover);box-shadow:var(--shadow-sm)}.btn-select-images:disabled{opacity:.5;cursor:not-allowed}.btn-browse-library{flex:1;padding:.75rem;border:2px solid var(--success);background:var(--success-light);color:var(--success);border-radius:var(--radius);font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s}.btn-browse-library:hover{background:var(--success-light);border-color:var(--success-hover)}.btn-browse-library:disabled{opacity:.5;cursor:not-allowed}.scheduler-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-weight:500;color:var(--foreground);white-space:nowrap}.scheduler-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.scheduler-label span{-webkit-user-select:none;user-select:none}.scheduler-inputs{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem;padding:.75rem;background:var(--card);border-radius:var(--radius);border:1px solid var(--border)}.quick-date-buttons{display:flex;gap:.5rem;align-items:center;margin-bottom:.5rem}.quick-date-btn{flex:1;padding:.5rem .75rem;background-color:var(--card);border:1px solid var(--primary);color:var(--primary);border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.quick-date-btn:hover{background-color:var(--primary);color:var(--primary-foreground);box-shadow:var(--shadow-sm)}.quick-date-btn:active{transform:scale(.98)}.datetime-input{padding:.6rem;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.95rem;font-family:inherit;background:var(--background);color:var(--foreground)}.datetime-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.timezone-hint{font-size:.8rem;color:var(--muted-foreground);font-style:italic;white-space:nowrap;margin-left:auto}.upload-progress{margin:1rem 0}.progress-bar-container{width:100%;height:28px;background:var(--border);border-radius:var(--radius-lg);overflow:hidden;position:relative;box-shadow:var(--shadow-sm)}.progress-bar{height:100%;background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);border-radius:var(--radius-lg);transition:width .3s ease;display:flex;align-items:center;justify-content:center;min-width:50px;position:relative;animation:progressPulse 1.5s ease-in-out infinite}@keyframes progressPulse{0%,to{opacity:1}50%{opacity:.85}}.progress-text{color:var(--primary-foreground);font-weight:700;font-size:.85rem;text-shadow:0 1px 2px rgba(0,0,0,.2);position:relative;z-index:1}.progress-label{margin-top:.5rem;text-align:center;font-size:.9rem;color:var(--muted-foreground);font-weight:500}.media-actions{display:flex;gap:.5rem;margin-top:1rem}.media-actions .btn-send-media,.media-actions .btn-cancel{flex:1;padding:.75rem;font-size:1rem}.media-actions .btn-send-media:disabled{background:var(--border);cursor:not-allowed}.media-actions .btn-cancel:disabled{background:var(--muted-foreground);cursor:not-allowed;opacity:.6}@media (max-width: 768px){.composer-form,.media-form{padding:.75rem 1rem}.btn-action{width:44px;height:44px;font-size:1.1rem}.message-input{padding:.625rem 2.5rem .625rem .875rem;font-size:.9rem}.emoji-toggle-btn{width:32px;height:32px;font-size:1.3rem}.emoji-btn{width:40px;height:40px;font-size:1.4rem}.emoji-picker-row{padding:.5rem .75rem}.btn-send{padding:.625rem 1.25rem;font-size:.9rem}.star-price-control{flex-wrap:wrap;gap:.5rem;padding:.625rem}.price-label{width:100%;font-size:.9rem}.price-adjuster{flex:1;min-width:200px}.price-btn{width:48px;height:48px;font-size:1.6rem}.price-display{min-width:110px;font-size:1.05rem}.custom-price-input{flex:1;min-width:100px;min-height:48px;font-size:1rem}.caption-scheduler-row{flex-direction:column;align-items:stretch;gap:.75rem}.scheduler-label{justify-content:flex-start}.image-previews{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:.5rem}.media-controls{flex-wrap:wrap}.star-input,.caption-input,.btn-send-media,.btn-cancel{min-height:44px}.scheduler-label input[type=checkbox]{width:20px;height:20px}.datetime-input{min-height:44px}}@media (max-width: 480px){.composer-form{padding:.625rem .75rem;gap:.375rem}.media-form{padding:.625rem .75rem}.btn-action{width:40px;height:40px}.message-input{padding:.5rem 2.25rem .5rem .75rem;font-size:.875rem}.emoji-toggle-btn{width:28px;height:28px;font-size:1.1rem;right:6px}.emoji-btn{width:38px;height:38px;font-size:1.3rem}.btn-send{padding:.5rem 1rem;font-size:.875rem}.media-controls,.star-price-control{flex-direction:column;align-items:stretch}.price-adjuster,.custom-price-input,.caption-input{width:100%}}.image-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:9999;padding:1rem}.modal-content{position:relative;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.modal-content img{max-width:100%;max-height:85vh;object-fit:contain;border-radius:var(--radius);box-shadow:var(--shadow-lg)}.modal-close{position:absolute;top:-40px;right:0;width:36px;height:36px;border-radius:50%;border:none;background:var(--card);color:var(--foreground);font-size:24px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s;z-index:10000}.modal-close:hover{background:var(--card);color:red}.modal-navigation{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1rem;padding:.5rem 1rem;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:var(--radius-lg)}.nav-btn{width:40px;height:40px;border-radius:50%;border:none;background:var(--card);color:var(--foreground);font-size:28px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1}.nav-btn:hover{background:var(--card);transform:scale(1.1)}.image-counter{color:#fff;font-weight:600;font-size:.95rem;min-width:60px;text-align:center}@media (max-width: 768px){.modal-content{max-width:95vw;max-height:95vh}.modal-content img{max-height:90vh}.modal-close{top:-50px;width:44px;height:44px;font-size:28px}.nav-btn{width:48px;height:48px;font-size:32px}.modal-navigation{padding:.75rem 1.25rem}}.ai-toggle{display:flex;flex-direction:column;gap:.25rem}.toggle-label{display:flex;align-items:center;gap:.75rem;cursor:pointer}.toggle-text{font-size:.9rem;font-weight:500;color:var(--foreground)}.toggle-btn{position:relative;width:48px;height:24px;border:none;border-radius:12px;cursor:pointer;transition:background-color .3s;padding:0}.toggle-btn.off{background:var(--muted-foreground)}.toggle-btn.on{background:var(--success)}.toggle-btn:disabled{opacity:.5;cursor:not-allowed}.toggle-slider{position:absolute;top:2px;left:2px;width:20px;height:20px;background:var(--background);border-radius:50%;transition:transform .3s}.toggle-btn.on .toggle-slider{transform:translate(24px)}.toggle-warning{font-size:.75rem;color:var(--warning)}@media (max-width: 768px){.toggle-label{padding:.5rem 0;gap:1rem}.toggle-btn{width:52px;height:28px;border-radius:14px}.toggle-slider{top:3px;left:3px;width:22px;height:22px}.toggle-btn.on .toggle-slider{transform:translate(24px)}.toggle-text{font-size:.95rem}.toggle-warning{font-size:.8rem}}.purchase-history-modal{max-width:500px}.purchase-summary{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:var(--muted);border-radius:var(--radius);margin-bottom:1rem;border:1px solid var(--border)}.summary-row{display:flex;justify-content:space-between;align-items:center}.summary-label{font-weight:500;font-size:.9rem;color:var(--muted-foreground)}.summary-value{font-size:1.1rem;font-weight:700;color:var(--foreground)}.summary-value.purchased{color:var(--success)}.summary-value.pending{color:var(--warning)}.purchases-list{display:flex;flex-direction:column;gap:.5rem}.purchase-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-radius:var(--radius);background:var(--muted);border-left:3px solid var(--border)}.purchase-item.purchased{border-left-color:var(--success);background:var(--success-light)}.purchase-item.sent{border-left-color:var(--warning);background:var(--warning-light)}.purchase-info{display:flex;flex-direction:column;gap:.25rem}.purchase-date{font-size:.8rem;color:var(--muted-foreground)}.purchase-seller{font-weight:600;color:var(--foreground);font-size:.9rem}.purchase-details{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.purchase-stars{font-weight:700;color:var(--warning);font-size:1rem}.purchase-status{font-size:.7rem;text-transform:uppercase;font-weight:600;padding:2px 6px;border-radius:var(--radius-sm)}.purchase-status.purchased{color:var(--success);background:var(--success-light)}.purchase-status.sent{color:var(--warning);background:var(--warning-light)}@media (max-width: 768px){.purchase-history-modal{max-width:95%}.purchase-item{flex-direction:column;align-items:flex-start;gap:.5rem}.purchase-details{width:100%;flex-direction:row;justify-content:space-between;align-items:center}}.chat-actions-menu{position:relative;display:inline-block;margin-left:8px}.actions-trigger{background:transparent;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--muted-foreground);cursor:pointer;padding:4px 8px;font-size:16px;font-weight:700;line-height:1;transition:all var(--transition-fast)}.actions-trigger:hover{background:var(--accent);border-color:var(--ring);color:var(--foreground)}.actions-trigger .dots{letter-spacing:2px}.actions-dropdown{position:absolute;top:100%;right:0;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);min-width:150px;z-index:1000;overflow:hidden;margin-top:4px}.action-item{display:block;width:100%;padding:10px 14px;background:transparent;border:none;color:var(--foreground);text-align:left;cursor:pointer;font-size:14px;transition:background var(--transition-fast)}.action-item:hover{background:var(--accent)}.action-item.delete{color:var(--destructive)}.action-item.delete:hover{background:var(--destructive-light)}.action-item.block{color:var(--warning)}.action-item.block:hover{background:var(--warning-light)}.action-item.history{color:var(--warning)}.action-item.history:hover{background:var(--warning-light)}.confirm-action{padding:12px}.confirm-text{display:block;color:var(--foreground);font-size:13px;margin-bottom:10px;text-align:center}.confirm-buttons{display:flex;gap:8px;justify-content:center}.confirm-yes,.confirm-no{padding:6px 16px;border:none;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:500;transition:all var(--transition-fast)}.confirm-yes{background:var(--destructive);color:var(--destructive-foreground)}.confirm-yes:hover:not(:disabled){background:var(--destructive-hover)}.confirm-yes:disabled{opacity:.6;cursor:not-allowed}.confirm-no{background:var(--muted);color:var(--foreground)}.confirm-no:hover{background:var(--accent)}.message-thread{display:flex;flex-direction:column;height:100%;min-width:0;overflow:hidden}.thread-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border);background:var(--card)}.thread-title h2{margin:0;font-size:1.1rem;font-weight:600;color:var(--foreground)}.chat-id{font-size:.8rem;color:var(--muted-foreground);margin-left:.5rem}.messages-container{flex:1;overflow-y:auto;background:var(--background-secondary);padding:1rem}.no-messages{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted-foreground)}.messages-list{display:flex;flex-direction:column;gap:.5rem;width:100%}.date-separator{display:flex;align-items:center;justify-content:center;margin:1rem 0;text-align:center}.date-separator span{background:var(--muted);color:var(--muted-foreground);font-size:.8rem;font-weight:500;padding:.4rem 1rem;border-radius:var(--radius-lg, 12px);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.message{display:flex;flex-direction:column;max-width:65%;width:fit-content}.message.incoming{margin-right:auto}.message.outgoing{margin-left:auto}.message-content{position:relative;padding:.625rem .875rem;border-radius:var(--radius, 8px);word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.message.incoming .message-content{background:var(--message-received, var(--card));color:var(--message-received-text, var(--foreground));border-bottom-left-radius:2px;box-shadow:var(--shadow-xs)}.message.outgoing .message-content{background:var(--message-sent, var(--primary));color:var(--message-sent-text, var(--primary-foreground));border-bottom-right-radius:2px;box-shadow:var(--shadow-sm)}.message-text{margin:0;line-height:1.5;font-size:.95rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}.message-content:has(.paid-media-badge) .message-text{padding-right:100px;margin-bottom:.5rem}.message-media{margin-top:.5rem}.message-content:has(.paid-media-badge):has(.message-text) .message-media{margin-top:.25rem}.media-badge{display:inline-block;padding:.25rem .5rem;background:#0000001a;border-radius:var(--radius-xs, 4px);font-size:.8rem;font-weight:500}.paid-media-badge{position:absolute;top:.4rem;right:.4rem;display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;padding:.4rem .6rem;border-radius:var(--radius, 8px);font-size:.75rem;font-weight:600;z-index:10;background:#000000bf;color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:var(--shadow-md)}.paid-media-badge.purchased{background:#228b22d9}.paid-media-badge.pending{background:#ffa500d9}.paid-media-badge .stars-amount{font-size:.85rem;font-weight:700}.paid-media-badge .purchase-status{font-size:.65rem;font-weight:500;opacity:.9}.media-image{max-width:100%;max-height:400px;border-radius:var(--radius, 8px);cursor:pointer;display:block}.media-video{max-width:100%;max-height:400px;border-radius:var(--radius, 8px);display:block;background:#000}.media-audio{width:100%;max-width:300px;display:block}.message-meta{display:flex;gap:.5rem;margin-top:.25rem;padding:0 .25rem;font-size:.75rem;color:var(--muted-foreground)}.message.outgoing .message-meta{justify-content:flex-end}.sender{font-weight:500;color:var(--primary)}@media (max-width: 768px){.thread-header{padding:.75rem 1rem}.thread-title h2{font-size:1rem}.chat-id{font-size:.75rem}.messages-container{padding:.75rem .5rem}.message{max-width:75%}.message-content{padding:.5rem .75rem}.message-text{font-size:.9rem}.message-meta{font-size:.7rem}}@media (max-width: 480px){.messages-container{padding:.5rem .375rem}.message{max-width:80%}.message-content{padding:.5rem .75rem}.message-text{font-size:.875rem}}.calendar-page{display:flex;flex:1;overflow:hidden;background:var(--background-secondary)}.calendar-sidebar{width:260px;background:var(--card);border-right:1px solid var(--border);padding:24px;overflow-y:auto;display:flex;flex-direction:column;gap:28px;flex-shrink:0}.sidebar-section h3{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground);margin:0 0 12px}.account-actions{display:flex;gap:12px;margin-bottom:12px}.text-btn{background:none;border:none;padding:0;font-size:13px;color:var(--primary);cursor:pointer;font-weight:500}.text-btn:hover{text-decoration:underline}.account-filters{display:flex;flex-direction:column;gap:8px}.account-chip{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--muted);border-radius:var(--radius, 8px);cursor:pointer;transition:all .15s ease;border:1px solid transparent}.account-chip:hover{background:var(--accent)}.account-chip.active{background:var(--card);border-color:var(--account-color);box-shadow:var(--shadow-sm)}.account-chip input{display:none}.account-dot{width:10px;height:10px;border-radius:50%;background:var(--account-color);opacity:.4;transition:opacity .15s ease}.account-chip.active .account-dot{opacity:1}.account-name{font-size:14px;font-weight:500;color:var(--foreground)}.status-filters{display:flex;flex-direction:column;gap:6px}.status-chip{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--muted);border:1px solid transparent;border-radius:var(--radius, 8px);cursor:pointer;font-size:14px;font-weight:500;color:var(--muted-foreground);transition:all .15s ease}.status-chip:hover{background:var(--accent)}.status-chip.active{background:var(--card);border-color:var(--border);color:var(--foreground);box-shadow:var(--shadow-sm)}.status-chip.active.pending{border-color:var(--primary);color:var(--primary)}.status-chip.active.sent{border-color:var(--success);color:var(--success)}.status-chip.active.failed{border-color:var(--destructive);color:var(--destructive)}.status-count{font-size:12px;background:var(--border);padding:2px 8px;border-radius:10px;color:var(--muted-foreground)}.status-chip.active .status-count{background:currentColor;color:var(--card)}.stats-section{margin-top:auto;padding-top:20px;border-top:1px solid var(--border)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat-item{display:flex;flex-direction:column;align-items:center;padding:16px 8px;background:var(--muted);border-radius:var(--radius-lg, 12px);text-align:center}.stat-item.pending{background:var(--primary-light)}.stat-item.sent{background:var(--success-light)}.stat-item.failed{background:var(--destructive-light)}.stat-value{font-size:24px;font-weight:700;color:var(--foreground);line-height:1}.stat-item.pending .stat-value{color:var(--primary)}.stat-item.sent .stat-value{color:var(--success)}.stat-item.failed .stat-value{color:var(--destructive)}.stat-label{font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.03em;color:var(--muted-foreground);margin-top:6px}.calendar-main{flex:1;display:flex;flex-direction:column;padding:24px;overflow:hidden;min-width:0}.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.calendar-nav{display:flex;align-items:center;gap:16px}.nav-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius, 8px);cursor:pointer;color:var(--muted-foreground);transition:all .15s ease}.nav-btn:hover{background:var(--muted);color:var(--foreground);border-color:var(--border)}.calendar-title{font-size:24px;font-weight:600;color:var(--foreground);margin:0;min-width:200px;text-align:center}.today-btn{padding:8px 16px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius, 8px);font-size:14px;font-weight:500;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease}.today-btn:hover{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}.calendar-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--muted-foreground)}.calendar-grid{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:auto repeat(6,1fr);gap:1px;background:var(--border);border-radius:var(--radius-lg, 12px);overflow:hidden;box-shadow:var(--shadow-sm)}.calendar-day-header{background:var(--muted);padding:12px;text-align:center;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground)}.calendar-cell{background:var(--card);padding:8px;min-height:90px;display:flex;flex-direction:column;align-items:center;transition:all .15s ease;border:none;cursor:pointer;text-align:left;font-family:inherit}.calendar-cell:hover,.calendar-cell.other-month{background:var(--muted)}.calendar-cell.other-month .cell-date{color:var(--border)}.calendar-cell.today .cell-date{background:var(--primary);color:var(--primary-foreground)}.calendar-cell.selected{background:var(--primary-light);box-shadow:inset 0 0 0 2px var(--primary)}.calendar-cell.has-posts:hover{background:var(--accent)}.cell-date{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:14px;font-weight:500;color:var(--foreground);border-radius:var(--radius, 8px);margin-bottom:8px}.cell-indicators{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}.indicator{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;font-size:11px;font-weight:600;color:var(--primary-foreground)}.indicator.pending{background:var(--primary)}.indicator.sent{background:var(--success)}.indicator.failed{background:var(--destructive)}.day-panel{width:380px;background:var(--card);border-left:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0;animation:slideIn .2s ease}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.day-panel-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border);gap:16px}.day-panel-title{flex:1;min-width:0}.day-panel-title h3{font-size:16px;font-weight:600;color:var(--foreground);margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.post-count{font-size:13px;color:var(--muted-foreground)}.back-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--muted);border:none;border-radius:var(--radius, 8px);font-size:14px;font-weight:500;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease}.back-btn:hover{background:var(--accent);color:var(--foreground)}.close-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--muted);border:none;border-radius:var(--radius, 8px);cursor:pointer;color:var(--muted-foreground);transition:all .15s ease;flex-shrink:0}.close-btn:hover{background:var(--accent);color:var(--foreground)}.day-panel-content{flex:1;overflow-y:auto;padding:16px}.empty-day{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:var(--muted-foreground);text-align:center}.empty-day svg{margin-bottom:16px;opacity:.5}.empty-day p{font-size:15px;margin:0}.day-posts-list{display:flex;flex-direction:column;gap:12px}.day-post-item{display:flex;align-items:flex-start;gap:12px;padding:16px;background:var(--muted);border:1px solid var(--border);border-radius:var(--radius-lg, 12px);cursor:pointer;transition:all .15s ease;text-align:left;width:100%;font-family:inherit}.day-post-item:hover{background:var(--card);border-color:var(--border);box-shadow:var(--shadow-sm)}.day-post-item.failed{border-left:3px solid var(--destructive)}.day-post-item.sent{border-left:3px solid var(--success);opacity:.7}.day-post-item.pending{border-left:3px solid var(--primary)}.day-post-time{font-size:13px;font-weight:600;color:var(--primary);min-width:50px;padding-top:2px}.day-post-content{flex:1;min-width:0}.day-post-header{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}.day-post-account{padding:3px 8px;border-radius:var(--radius-xs, 4px);font-size:11px;font-weight:500;color:var(--primary-foreground)}.day-post-status{font-size:11px;font-weight:500;text-transform:uppercase;padding:3px 8px;border-radius:var(--radius-xs, 4px)}.day-post-status.pending{background:var(--primary-light);color:var(--primary)}.day-post-status.sent{background:var(--success-light);color:var(--success)}.day-post-status.failed{background:var(--destructive-light);color:var(--destructive)}.day-post-chat{font-size:15px;font-weight:500;color:var(--foreground);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-post-caption{font-size:13px;color:var(--muted-foreground);margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.day-post-meta{display:flex;gap:12px;font-size:12px;color:var(--muted-foreground)}.day-post-arrow{color:var(--border);flex-shrink:0;margin-top:4px}.post-detail-content{display:flex;flex-direction:column;gap:20px}.detail-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.detail-row.stats{padding:16px;background:var(--muted);border-radius:var(--radius, 10px)}.account-badge{padding:6px 12px;border-radius:var(--radius-sm, 6px);font-size:13px;font-weight:500;color:var(--primary-foreground)}.status-badge{padding:4px 10px;border-radius:var(--radius-sm, 6px);font-size:12px;font-weight:500;text-transform:uppercase}.status-badge.pending{background:var(--primary-light);color:var(--primary)}.status-badge.sent{background:var(--success-light);color:var(--success)}.status-badge.failed{background:var(--destructive-light);color:var(--destructive)}.detail-group{display:flex;flex-direction:column;gap:6px}.detail-group label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--muted-foreground)}.detail-group p{font-size:15px;color:var(--foreground);margin:0;line-height:1.5}.chat-type-badge{display:inline-block;padding:3px 8px;background:var(--muted);border-radius:var(--radius-xs, 4px);font-size:11px;font-weight:500;color:var(--muted-foreground);text-transform:uppercase;margin-top:4px}.caption-preview{padding:12px;background:var(--muted);border-radius:var(--radius, 8px);white-space:pre-wrap;word-break:break-word}.detail-stat{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--foreground)}.stat-icon{font-size:16px}.detail-group.error label{color:var(--destructive)}.detail-group.error p{padding:12px;background:var(--destructive-light);border-radius:var(--radius, 8px);color:var(--destructive);font-size:14px}.panel-actions{display:flex;gap:12px;padding-top:8px;border-top:1px solid var(--border)}.edit-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay-bg, rgba(0, 0, 0, .5));-webkit-backdrop-filter:var(--overlay-backdrop, blur(4px));backdrop-filter:var(--overlay-backdrop, blur(4px));display:flex;align-items:center;justify-content:center;z-index:110;animation:fadeIn .15s ease}.edit-modal{background:var(--card);border-radius:var(--radius-xl, 16px);width:100%;max-width:480px;box-shadow:var(--shadow-xl);animation:slideUp .2s ease;border:1px solid var(--border)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}.modal-header h3{font-size:18px;font-weight:600;color:var(--foreground);margin:0}.modal-content{padding:24px;display:flex;flex-direction:column;gap:20px}.reschedule-info{padding:12px 16px;background:var(--warning-light);border-radius:var(--radius, 8px);border-left:3px solid var(--warning)}.reschedule-info p{margin:0;font-size:14px;color:var(--warning)}.quick-schedule-btns{display:flex;gap:8px;flex-wrap:wrap}.quick-btn{padding:8px 14px;background:var(--muted);border:none;border-radius:var(--radius-sm, 6px);font-size:13px;font-weight:500;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease}.quick-btn:hover{background:var(--accent);color:var(--foreground)}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:13px;font-weight:600;color:var(--foreground)}.form-input{padding:12px 14px;background:var(--background);border:1px solid var(--border);border-radius:var(--radius, 8px);font-size:14px;font-family:inherit;color:var(--foreground);transition:all .15s ease}.form-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.form-input::placeholder{color:var(--muted-foreground)}textarea.form-input{resize:vertical;min-height:100px}.form-hint{font-size:12px;color:var(--muted-foreground)}.modal-actions{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid var(--border);background:var(--muted);border-radius:0 0 var(--radius-xl, 16px) var(--radius-xl, 16px)}.btn{padding:10px 18px;border:none;border-radius:var(--radius, 8px);font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{background:var(--muted);color:var(--muted-foreground)}.btn-secondary:hover{background:var(--accent);color:var(--foreground)}.btn-edit{flex:1;background:var(--primary);color:var(--primary-foreground)}.btn-retry{flex:1;background:var(--warning);color:var(--warning-foreground)}.btn-retry:hover{background:var(--warning-hover)}.btn-delete{flex:1;background:var(--destructive-light);color:var(--destructive)}.btn-delete:hover{background:var(--destructive);color:var(--destructive-foreground)}@media (max-width: 1200px){.day-panel{width:340px}}@media (max-width: 1024px){.calendar-sidebar{width:220px;padding:20px}.stats-grid{grid-template-columns:1fr;gap:8px}.stat-item{flex-direction:row;justify-content:space-between;padding:12px 16px}.stat-value{font-size:20px}.stat-label{margin-top:0}.day-panel{position:fixed;right:0;top:60px;bottom:0;width:380px;z-index:50;box-shadow:var(--shadow-lg)}}@media (max-width: 768px){.calendar-page{flex-direction:column}.calendar-sidebar{width:100%;flex-direction:row;flex-wrap:wrap;gap:20px;padding:16px;border-right:none;border-bottom:1px solid var(--border)}.sidebar-section{flex:1;min-width:200px}.stats-section{margin-top:0;padding-top:0;border-top:none}.stats-grid{grid-template-columns:repeat(3,1fr)}.stat-item{flex-direction:column;padding:12px 8px}.calendar-main{padding:16px}.calendar-header{flex-direction:column;gap:12px;align-items:stretch}.calendar-nav{justify-content:center}.today-btn{align-self:center}.calendar-cell{min-height:70px;padding:4px}.cell-date{width:28px;height:28px;font-size:13px}.indicator{min-width:16px;height:16px;font-size:10px;padding:0 4px}.day-panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:70vh;border-radius:var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0;border-left:none;border-top:1px solid var(--border);z-index:100}.edit-modal{margin:16px;max-width:calc(100% - 32px)}}@media (max-width: 480px){.calendar-sidebar{flex-direction:column}.sidebar-section{min-width:100%}.account-filters{flex-direction:row;flex-wrap:wrap;gap:6px}.account-chip{padding:8px 10px;flex:0 0 auto}.status-filters{flex-direction:row;flex-wrap:wrap;gap:6px}.status-chip{flex:1;padding:8px 12px;justify-content:center;gap:6px}.calendar-title{font-size:18px;min-width:auto}.calendar-cell{min-height:60px}.cell-date{width:24px;height:24px;font-size:12px;margin-bottom:4px}.day-panel{height:80vh}}.admin-container{padding:24px;max-width:100%;overflow-x:auto;background:var(--background)}.admin-header{margin-bottom:24px}.admin-header h1{margin:0 0 16px;font-size:24px;color:var(--foreground)}.admin-actions{margin-bottom:16px;display:flex;gap:12px;align-items:center}.btn-bulk-second-chance{padding:10px 20px;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);color:var(--primary-foreground);border:none;border-radius:var(--radius);font-weight:600;font-size:14px;cursor:pointer;transition:all .3s ease;box-shadow:var(--shadow-md)}.btn-bulk-second-chance:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow-lg)}.btn-bulk-second-chance:disabled{opacity:.5;cursor:not-allowed;background:var(--muted)}.admin-summary{display:flex;gap:32px;padding:16px;background:var(--muted);border-radius:var(--radius);border:1px solid var(--border)}.summary-item{display:flex;flex-direction:column;gap:4px}.summary-label{font-size:12px;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.5px}.summary-value{font-size:24px;font-weight:600;color:var(--foreground)}.summary-value.stars{color:var(--warning)}.summary-value.disabled-count{color:var(--destructive)}.admin-loading,.admin-error,.admin-empty{text-align:center;padding:48px;color:var(--muted-foreground);font-size:16px}.admin-error{color:var(--destructive)}.admin-table-container{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}.admin-table{width:100%;border-collapse:collapse;font-size:14px;background:var(--card)}.admin-table thead{background:var(--muted);border-bottom:2px solid var(--border)}.admin-table th{padding:12px 16px;text-align:left;font-weight:600;color:var(--foreground);white-space:nowrap}.admin-table tbody tr{border-bottom:1px solid var(--border);transition:background-color var(--transition-fast)}.admin-table tbody tr:hover{background:var(--muted)}.admin-table tbody tr.ai-disabled-row,.admin-table tbody tr.ai-disabled-row:hover{background:var(--destructive-light)}.admin-table td{padding:12px 16px;color:var(--foreground)}.chat-title{font-weight:500;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-count{cursor:help;border-bottom:1px dotted var(--muted-foreground)}.date-cell{color:var(--muted-foreground);font-size:13px}.stars-cell{font-weight:600;color:var(--warning)}.conversion-cell{font-weight:600}.conversion-cell.low-conversion{color:var(--destructive)}.next-media-cell{font-size:13px;font-weight:500}.next-media-ready{color:var(--success);font-weight:600;cursor:help}.next-media-unknown{color:var(--muted-foreground)}.ai-status-cell{min-width:150px}.ai-disabled{display:flex;flex-direction:column;gap:4px}.status-badge{display:inline-block;padding:4px 8px;border-radius:var(--radius-sm);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;width:fit-content}.status-badge.enabled{background:var(--success-light);color:var(--success)}.status-badge.disabled{background:var(--destructive-light);color:var(--destructive)}.ai-reason{font-size:11px;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px;cursor:help}.actions-column{width:140px;text-align:center}.actions-cell{text-align:center;padding:8px!important}.btn-second-chance{padding:6px 12px;background:linear-gradient(135deg,var(--success) 0%,var(--success-hover) 100%);color:var(--success-foreground);border:none;border-radius:var(--radius);font-size:12px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:var(--shadow-sm);white-space:nowrap}.btn-second-chance:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-second-chance:disabled{opacity:.6;cursor:not-allowed;background:var(--muted)}.disabled-reason-cell{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted-foreground)}.voice-status-cell{text-align:center;font-size:16px}.last-voice-cell{font-size:13px;color:var(--muted-foreground)}.admin-table-cards{display:none}.admin-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:12px;transition:all var(--transition-fast)}.admin-card:hover{box-shadow:var(--shadow-md)}.admin-card.ai-disabled-card{background:var(--destructive-light);border-color:var(--destructive)}.admin-card-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}.admin-card-title{flex:1}.admin-card-title h3{margin:0 0 4px;font-size:16px;font-weight:600;color:var(--foreground)}.admin-card-title .chat-id{font-size:12px;color:var(--muted-foreground)}.admin-card-status{flex-shrink:0;margin-left:12px}.admin-card-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:12px}.admin-card-field{display:flex;flex-direction:column;gap:4px}.admin-card-label{font-size:11px;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.5px;font-weight:600}.admin-card-value{font-size:14px;color:var(--foreground);font-weight:500}.admin-card-actions{padding-top:12px;border-top:1px solid var(--border);display:flex;justify-content:flex-end}@media (max-width: 1400px){.admin-table{font-size:13px}.admin-table th,.admin-table td{padding:10px 12px}.chat-title{max-width:150px}.disabled-reason-cell{max-width:200px}}@media (max-width: 1024px){.admin-container{padding:16px}.admin-summary{flex-wrap:wrap;gap:16px}.summary-item{flex:1;min-width:120px}.admin-table-container{display:none}.admin-table-cards{display:block}}@media (max-width: 640px){.admin-container{padding:12px}.admin-header h1{font-size:20px}.admin-summary{padding:12px}.summary-item{min-width:100%}.summary-value{font-size:20px}.btn-bulk-second-chance{width:100%;padding:12px 16px}.admin-card-body{grid-template-columns:1fr}}.user-management{padding:20px;max-width:1400px;margin:0 auto}.user-management-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.user-management-header h1{margin:0;color:var(--foreground)}.btn-create-user{padding:10px 20px;background:var(--primary);color:var(--primary-foreground);border:none;border-radius:var(--radius-xs, 4px);cursor:pointer;font-size:14px;transition:background var(--transition-fast, .2s)}.btn-create-user:hover{background:var(--primary-hover)}.user-management-error{background:var(--destructive-light);border:1px solid var(--destructive);color:var(--destructive);padding:12px 16px;border-radius:var(--radius-sm, 6px);margin-bottom:20px}.users-table-container{background:var(--card);border-radius:var(--radius, 8px);box-shadow:var(--shadow-sm);overflow-x:auto;border:1px solid var(--border);-webkit-overflow-scrolling:touch;position:relative}.users-table-container:after{content:"";position:absolute;top:0;right:0;bottom:0;width:24px;background:linear-gradient(to left,var(--card) 0%,transparent 100%);pointer-events:none;z-index:5;opacity:0;transition:opacity .3s ease}@keyframes scroll-hint-users{0%,to{opacity:.7}50%{opacity:1}}.users-table{width:100%;border-collapse:collapse}.users-table thead{background:var(--muted)}.users-table th{padding:12px;text-align:left;font-weight:600;font-size:14px;color:var(--muted-foreground);border-bottom:2px solid var(--border)}.users-table td{padding:12px;border-bottom:1px solid var(--border);color:var(--foreground)}.users-table tr:hover{background:var(--muted)}.users-table tr.inactive-user{opacity:.6}.role-badge{display:inline-block;padding:4px 8px;border-radius:var(--radius-xs, 4px);font-size:12px;font-weight:600}.role-badge.admin{background:var(--info-light);color:var(--info)}.role-badge.user{background:var(--success-light);color:var(--success)}.status-badge{display:inline-block;padding:4px 8px;border-radius:var(--radius-xs, 4px);font-size:12px;font-weight:600}.status-badge.active{background:var(--success-light);color:var(--success)}.status-badge.inactive{background:var(--destructive-light);color:var(--destructive)}.all-accounts{color:var(--info);font-weight:600}.user-actions{display:flex;gap:8px}.btn-edit,.btn-delete{padding:6px 12px;border:none;border-radius:var(--radius-xs, 4px);cursor:pointer;font-size:13px;transition:background var(--transition-fast, .2s)}.btn-edit{background:var(--primary);color:var(--primary-foreground)}.btn-edit:hover{background:var(--primary-hover)}.btn-delete{background:var(--destructive);color:var(--destructive-foreground)}.btn-delete:hover{background:var(--destructive-hover)}.modal-content{background:var(--card);border-radius:var(--radius, 8px);width:90%;max-width:500px;max-height:90vh;overflow-y:auto;border:1px solid var(--border);box-shadow:var(--shadow-xl)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--border)}.modal-header h2{margin:0;color:var(--foreground)}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:var(--muted-foreground);transition:color var(--transition-fast, .2s)}.modal-close:hover{color:var(--foreground)}.modal-error{background:var(--destructive-light);border:1px solid var(--destructive);color:var(--destructive);padding:12px 16px;margin:16px 20px 0;border-radius:var(--radius-sm, 6px);font-size:14px}.modal-content form{padding:20px}.modal-content .form-group{margin-bottom:16px}.modal-content label{display:block;font-weight:600;margin-bottom:4px;font-size:14px;color:var(--foreground)}.modal-content input[type=text],.modal-content input[type=email],.modal-content input[type=password],.modal-content select{width:100%;padding:8px 12px;border:1px solid var(--input, var(--border));border-radius:var(--radius-xs, 4px);font-size:14px;box-sizing:border-box;background:var(--background);color:var(--foreground);transition:border-color var(--transition-fast, .2s)}.modal-content input:focus,.modal-content select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-light)}.modal-content small{color:var(--muted-foreground);font-size:12px}.account-checkboxes{display:flex;flex-direction:column;gap:8px;max-height:200px;overflow-y:auto;padding:8px;border:1px solid var(--border);border-radius:var(--radius-xs, 4px);background:var(--muted)}.account-checkbox{display:flex;align-items:center;gap:8px;font-weight:400;color:var(--foreground)}.modal-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid var(--border)}.modal-actions button{padding:8px 16px;border:1px solid var(--border);border-radius:var(--radius-xs, 4px);cursor:pointer;font-size:14px;background:var(--muted);color:var(--foreground);transition:all var(--transition-fast, .2s)}.modal-actions button:hover{background:var(--accent)}.modal-actions .btn-primary{background:var(--primary);color:var(--primary-foreground);border:none}.modal-actions .btn-primary:hover{background:var(--primary-hover)}.user-management-loading{padding:20px;text-align:center;color:var(--muted-foreground)}.shift-info{display:inline-block;padding:4px 8px;border-radius:var(--radius-xs, 4px);font-size:12px;font-weight:600;background:var(--success-light);color:var(--success)}.shift-none{color:var(--muted-foreground)}.work-days-checkboxes{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--border);border-radius:var(--radius-xs, 4px);background:var(--muted)}.work-day-checkbox{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer;color:var(--foreground)}.work-day-checkbox input[type=checkbox]{cursor:pointer}@media (max-width: 768px){.users-table-container:after{opacity:1;animation:scroll-hint-users 2s ease-in-out .5s 2}.user-management{padding:16px}.user-management-header{flex-direction:column;gap:12px;align-items:stretch}.btn-create-user{text-align:center;min-height:44px}.users-table th,.users-table td{padding:8px;font-size:13px}.btn-edit,.btn-delete{min-height:44px;padding:8px 16px}.modal-close{width:44px;height:44px;min-width:44px;min-height:44px}.modal-actions button{min-height:44px;padding:10px 20px}}.settings-nav{width:220px;min-width:220px;background:var(--muted);border-right:1px solid var(--border);padding:1rem 0;height:100%}.settings-nav-title{padding:0 1rem;margin:0 0 1rem;font-size:1rem;font-weight:600;color:var(--foreground)}.settings-nav-list{list-style:none;margin:0;padding:0}.settings-nav-link{display:block;padding:.75rem 1rem;color:var(--muted-foreground);text-decoration:none;border-left:3px solid transparent;transition:all .2s ease}.settings-nav-link:hover{background:var(--border);color:var(--foreground)}.settings-nav-link.active{background:var(--primary-light);color:var(--primary);border-left-color:var(--primary);font-weight:500}@media (max-width: 768px){.settings-nav{width:100%;min-width:auto;border-right:none;border-bottom:1px solid var(--border);height:auto;padding:.5rem 0}.settings-nav-title{display:none}.settings-nav-list{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}.settings-nav-link{border-left:none;border-bottom:3px solid transparent;white-space:nowrap;min-height:44px;display:flex;align-items:center;padding:.75rem 1.25rem}.settings-nav-link.active{border-left:none;border-bottom-color:var(--primary)}}.settings-content{flex:1;padding:1.5rem;overflow-y:auto;background:var(--card)}@media (max-width: 768px){.settings-content{padding:1rem}}.chat-settings-nav{width:220px;min-width:220px;background:var(--muted);border-right:1px solid var(--border);padding:1rem 0;height:100%}.chat-settings-nav-title{padding:0 1rem;margin:0 0 1rem;font-size:1rem;font-weight:600;color:var(--foreground)}.chat-settings-nav-list{list-style:none;margin:0;padding:0}.chat-settings-nav-link{display:block;padding:.75rem 1rem;color:var(--muted-foreground);text-decoration:none;border-left:3px solid transparent;transition:all .2s ease}.chat-settings-nav-link:hover{background:var(--border);color:var(--foreground)}.chat-settings-nav-link.active{background:var(--primary-light);color:var(--primary);border-left-color:var(--primary);font-weight:500}@media (max-width: 768px){.chat-settings-nav{width:100%;min-width:auto;border-right:none;border-bottom:1px solid var(--border);height:auto;padding:.5rem 0}.chat-settings-nav-title{display:none}.chat-settings-nav-list{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}.chat-settings-nav-link{border-left:none;border-bottom:3px solid transparent;white-space:nowrap;min-height:44px;display:flex;align-items:center;padding:.75rem 1.25rem}.chat-settings-nav-link.active{border-left:none;border-bottom-color:var(--primary)}}.chat-settings-content{flex:1;padding:1.5rem;overflow-y:auto;background:var(--card)}@media (max-width: 768px){.chat-settings-content{padding:1rem}}.account-edit-modal{max-width:560px;width:95%}.account-info{display:flex;flex-direction:column;gap:4px;padding:16px 20px;background:var(--muted, #f5f5f5);border-bottom:1px solid var(--border, #e2e8f0)}.account-info .account-name{font-size:16px;font-weight:600;color:var(--foreground, #1a1a1a)}.account-info .account-phone{font-size:13px;color:var(--muted-foreground, #6b7280)}.account-edit-modal .form-group{margin-bottom:20px}.account-edit-modal label{display:block;font-weight:600;margin-bottom:6px;font-size:14px;color:var(--foreground, #1a1a1a)}.account-edit-modal input[type=text],.account-edit-modal select,.account-edit-modal textarea{width:100%;padding:10px 12px;border:1px solid var(--border, #cbd5e0);border-radius:6px;font-size:14px;box-sizing:border-box;background:var(--background, white);color:var(--foreground, #1a1a1a);transition:border-color .15s,box-shadow .15s}.account-edit-modal textarea{resize:vertical;min-height:120px;font-family:inherit;line-height:1.5}.account-edit-modal input[type=text]:focus,.account-edit-modal select:focus,.account-edit-modal textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.account-edit-modal select{cursor:pointer}.account-edit-modal select optgroup{font-weight:600;color:var(--foreground)}.account-edit-modal select option{padding:8px}.account-edit-modal small{display:block;margin-top:4px;color:var(--muted-foreground);font-size:12px}.account-edit-modal .checkbox-label{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer}.account-edit-modal .checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:var(--primary)}.account-edit-modal .loading-text{padding:10px 12px;color:var(--muted-foreground);font-size:14px;background:var(--muted);border-radius:var(--radius)}.account-edit-modal .modal-error{background:var(--destructive-light);border:1px solid var(--destructive);color:var(--destructive);padding:12px 16px;margin:16px 20px 0;border-radius:var(--radius);font-size:14px}.account-edit-modal form{padding:20px}.account-edit-modal .modal-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid var(--border, #e2e8f0);margin-top:8px}.account-edit-modal .modal-actions button{padding:10px 20px;border:1px solid var(--border, #cbd5e0);border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .15s}.account-edit-modal .modal-actions button:disabled{opacity:.6;cursor:not-allowed}.account-edit-modal .modal-actions .btn-primary{background:var(--primary);color:var(--primary-foreground);border:none}.account-edit-modal .modal-actions .btn-primary:hover:not(:disabled){background:var(--primary-hover)}@media (max-width: 768px){.account-edit-modal .modal-actions button{min-height:44px;padding:12px 20px}.account-edit-modal .checkbox-label input[type=checkbox]{width:22px;height:22px}.account-edit-modal input[type=text],.account-edit-modal select,.account-edit-modal textarea{font-size:16px;min-height:44px}}@media (max-width: 480px){.account-edit-modal{width:100%;max-width:none;margin:0;border-radius:12px 12px 0 0;max-height:95vh}}.persona-accounts{max-width:1400px}.persona-accounts-header{margin-bottom:1.5rem}.persona-accounts-header h2{margin:0 0 .5rem;font-size:1.5rem;color:var(--foreground, #333)}.persona-accounts-subtitle{color:var(--muted-foreground, #666);margin:0;font-size:.9rem}.persona-accounts-loading{padding:2rem;text-align:center;color:var(--muted-foreground, #666)}.persona-accounts-error{background:var(--destructive-light);border:1px solid var(--destructive);color:var(--destructive);padding:.75rem 1rem;border-radius:6px;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center}.persona-accounts-error button{background:none;border:none;color:var(--destructive);cursor:pointer;padding:.25rem .5rem;font-weight:500}.persona-accounts-table-wrapper{overflow-x:auto;background:var(--card, white);border-radius:8px;box-shadow:0 1px 3px #0000001a;-webkit-overflow-scrolling:touch;position:relative}.persona-accounts-table-wrapper:after{content:"";position:absolute;top:0;right:0;bottom:0;width:24px;background:linear-gradient(to left,var(--card, white) 0%,transparent 100%);pointer-events:none;z-index:5;opacity:0;transition:opacity .3s ease}@keyframes scroll-hint-persona{0%,to{opacity:.7}50%{opacity:1}}.persona-accounts-table{width:100%;border-collapse:collapse;font-size:.9rem}.persona-accounts-table th,.persona-accounts-table td{padding:.875rem 1rem;text-align:left;border-bottom:1px solid var(--border, #e0e0e0)}.persona-accounts-table th{background:var(--muted, #f5f5f5);font-weight:600;color:var(--foreground, #333);white-space:nowrap;font-size:.8rem;text-transform:uppercase;letter-spacing:.3px}.persona-accounts-table tbody tr:hover{background:var(--muted, #f9f9f9)}.persona-accounts-table tr.inactive{opacity:.6}.account-name{font-weight:600;color:var(--foreground, #333)}.inactive-badge{display:inline-block;background:var(--muted-foreground);color:var(--background);font-size:.65rem;padding:.15rem .4rem;border-radius:4px;margin-left:.5rem;font-weight:600;text-transform:uppercase}.account-phone{font-family:monospace;color:var(--muted-foreground, #555);font-size:.85rem}.account-description{max-width:200px;color:var(--muted-foreground, #666);font-size:.85rem}.account-description .empty{color:var(--muted-foreground, #999)}.account-persona{max-width:200px}.account-persona .empty{color:var(--muted-foreground, #999);font-style:italic}.persona-tag{display:inline-block;background:var(--primary-light, rgba(0, 136, 204, .1));color:var(--primary);padding:.25rem .5rem;border-radius:4px;font-size:.8rem;font-family:monospace;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-model{font-family:monospace;font-size:.85rem}.account-model .default-model{color:var(--muted-foreground, #999);font-style:italic}.account-autoreply{text-align:center}.status-indicator{display:inline-block;padding:.35rem .75rem;border-radius:20px;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.3px}.status-indicator.enabled{background:var(--success-light);color:var(--success)}.status-indicator.disabled{background:var(--destructive-light);color:var(--destructive)}.account-actions{text-align:center}.btn-edit{display:inline-flex;align-items:center;gap:6px;padding:.5rem 1rem;background:var(--primary);color:var(--primary-foreground);border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .15s ease}.btn-edit:hover{background:var(--primary-hover);transform:translateY(-1px)}.btn-edit:active{transform:translateY(0)}.btn-edit svg{width:16px;height:16px}.persona-accounts-empty{padding:2rem;text-align:center;color:var(--muted-foreground, #666);background:var(--muted, #f9f9f9);border-radius:8px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--overlay-bg, rgba(0, 0, 0, .5));-webkit-backdrop-filter:var(--overlay-backdrop, blur(4px));backdrop-filter:var(--overlay-backdrop, blur(4px));display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:var(--card);border-radius:12px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-xl)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--border, #e2e8f0)}.modal-header h2{margin:0;font-size:1.25rem;color:var(--foreground, #333)}.modal-close{background:none;border:none;font-size:28px;cursor:pointer;color:var(--muted-foreground, #718096);line-height:1;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .15s}.modal-close:hover{background:var(--muted, #f5f5f5)}@media (max-width: 768px){.persona-accounts-table-wrapper:after{opacity:1;animation:scroll-hint-persona 2s ease-in-out .5s 2}.persona-accounts-table th,.persona-accounts-table td{padding:.625rem .75rem}.account-description,.persona-tag{max-width:120px}.btn-edit{padding:.4rem .75rem;font-size:.8rem;min-height:44px}.btn-edit svg{width:14px;height:14px}.modal-close{width:44px;height:44px;min-width:44px;min-height:44px}}@media (max-width: 600px){.account-description,.account-model{display:none}}.bulk-sending{max-width:900px}.bulk-sending-header{margin-bottom:24px}.bulk-sending-header h2{color:var(--foreground);font-size:1.5rem;font-weight:600;margin:0 0 8px}.section-description{color:var(--muted-foreground);font-size:14px;margin:0;line-height:1.6}.settings-form{margin-bottom:24px}.form-row{display:flex;gap:20px;flex-wrap:wrap}.form-group{flex:1;min-width:160px}.form-group label{display:block;color:var(--foreground);font-size:14px;margin-bottom:8px;font-weight:500}.form-group input{width:100%;padding:10px 14px;background:var(--background);border:1px solid var(--input);border-radius:8px;color:var(--foreground);font-size:14px;transition:border-color .2s,box-shadow .2s}.form-group input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px var(--primary-light, rgba(0, 136, 204, .1))}.form-hint{display:block;color:var(--muted-foreground);font-size:12px;margin-top:6px;line-height:1.4}.preview-section{background:var(--muted);border:1px solid var(--border);border-radius:10px;padding:20px;margin-bottom:24px}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.preview-header h3{color:var(--foreground);font-size:14px;font-weight:600;margin:0}.refresh-btn{padding:8px 16px;background:var(--background);border:1px solid var(--input);border-radius:6px;color:var(--foreground);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.refresh-btn:hover:not(:disabled){background:var(--accent);border-color:var(--ring)}.refresh-btn:disabled{opacity:.5;cursor:not-allowed}.preview-list{max-height:300px;overflow-y:auto}.preview-list table{width:100%;border-collapse:collapse}.preview-list th,.preview-list td{padding:12px 16px;text-align:left}.preview-list th{color:var(--muted-foreground);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border);background:var(--muted);position:sticky;top:0}.preview-list td{color:var(--foreground);font-size:14px;border-bottom:1px solid var(--border)}.preview-list tr:hover td{background:var(--accent)}.more-chats{color:var(--muted-foreground);font-size:13px;text-align:center;margin-top:12px}.no-chats{color:var(--muted-foreground);font-size:14px;text-align:center;padding:32px 20px}.action-section{margin-bottom:24px}.run-btn{padding:12px 28px;background:var(--success);border:none;border-radius:8px;color:var(--success-foreground, #fff);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.run-btn:hover:not(:disabled){background:var(--success-hover, #059669);transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.run-btn:disabled{background:var(--muted);color:var(--muted-foreground);cursor:not-allowed;transform:none;box-shadow:none}.result-box{padding:20px;border-radius:10px;margin-top:20px}.result-box.success{background:var(--success-light);border:1px solid var(--success)}.result-box.error{background:var(--destructive-light);border:1px solid var(--destructive)}.result-box.warning{background:var(--warning-light);border:1px solid var(--warning)}.warning-details{margin-bottom:12px}.warning-details p{color:var(--warning);font-size:14px;margin:4px 0}.result-box h4{margin:0 0 12px;color:var(--foreground);font-size:15px;font-weight:600}.result-box.success h4{color:var(--success)}.result-box.error h4{color:var(--destructive)}.result-box.warning h4{color:var(--warning)}.result-box p{color:var(--foreground);font-size:14px;margin:0 0 8px}.result-box ul{margin:12px 0;padding-left:20px;color:var(--muted-foreground);font-size:14px}.result-box ul li{margin:6px 0}.error-details{margin-top:16px;padding-top:16px;border-top:1px solid var(--destructive-border, rgba(239, 68, 68, .2))}.error-details strong{color:var(--destructive);font-size:13px}.error-details ul{color:var(--destructive)}.progress-section{background:var(--info-light, #f0f9ff);border:1px solid var(--info-border, #bae6fd);border-radius:10px;padding:16px 20px;margin-bottom:20px}.progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.progress-text{color:var(--primary);font-size:14px;font-weight:500}.current-chat{color:var(--primary);font-weight:400}.progress-percent{color:var(--primary);font-size:14px;font-weight:600}.progress-bar{height:8px;background:var(--muted);border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--chart-1, #2563eb));border-radius:4px;transition:width .3s ease}.preview-actions{display:flex;gap:8px}.select-btn{padding:6px 12px;background:var(--background);border:1px solid var(--input);border-radius:6px;color:var(--foreground);font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.select-btn:hover:not(:disabled){background:var(--accent);border-color:var(--ring)}.select-btn:disabled{opacity:.5;cursor:not-allowed}.checkbox-col{width:40px;text-align:center}.checkbox-col input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--primary)}.status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.success{background:var(--success-light);color:var(--success)}.status-badge.error{background:var(--destructive-light);color:var(--destructive)}.status-badge.pending{background:var(--muted);color:var(--muted-foreground)}.preview-list tr.status-success td{background:var(--success-light)}.preview-list tr.status-error td{background:var(--destructive-light)}.statistics-nav{width:220px;min-width:220px;background:var(--muted);border-right:1px solid var(--border);padding:1rem 0;height:100%}.statistics-nav-title{padding:0 1rem;margin:0 0 1rem;font-size:1rem;font-weight:600;color:var(--foreground)}.statistics-nav-list{list-style:none;margin:0;padding:0}.statistics-nav-link{display:block;padding:.75rem 1rem;color:var(--muted-foreground);text-decoration:none;border-left:3px solid transparent;transition:all .2s ease}.statistics-nav-link:hover{background:var(--border);color:var(--foreground)}.statistics-nav-link.active{background:var(--primary-light);color:var(--primary);border-left-color:var(--primary);font-weight:500}@media (max-width: 768px){.statistics-nav{width:100%;min-width:auto;border-right:none;border-bottom:1px solid var(--border);height:auto;padding:.5rem 0}.statistics-nav-title{display:none}.statistics-nav-list{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}.statistics-nav-link{border-left:none;border-bottom:3px solid transparent;white-space:nowrap;min-height:44px;display:flex;align-items:center;padding:.75rem 1.25rem}.statistics-nav-link.active{border-left:none;border-bottom-color:var(--primary)}}.statistics-content{flex:1;padding:1.5rem;overflow-y:auto;background:var(--card)}@media (max-width: 768px){.statistics-content{padding:1rem}}.chats-statistics{max-width:1600px;margin:0 auto;padding:32px 24px;background:var(--background);min-height:100vh}.statistics-header{margin-bottom:32px}.statistics-header h1{font-size:30px;font-weight:600;color:var(--foreground);margin-bottom:4px;letter-spacing:-.025em;line-height:1.2}.statistics-subtitle{font-size:14px;color:var(--muted-foreground);font-weight:400;margin:0}.loading-state{display:flex;align-items:center;justify-content:center;height:400px;font-size:16px;color:var(--muted-foreground)}.error-message{background:var(--destructive);color:#fff;padding:16px;border-radius:var(--radius);margin-bottom:20px;font-weight:500}.statistics-section{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);padding:24px;margin-bottom:24px;box-shadow:0 1px 2px #0000000d;transition:box-shadow .2s ease}.statistics-section:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.statistics-section h2{color:var(--foreground);font-size:18px;font-weight:600;margin-bottom:16px;letter-spacing:-.01em}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;max-height:300px;overflow-y:auto}.checkbox-item input[type=checkbox],.checkbox-item input[type=radio]{width:16px;height:16px;cursor:pointer;accent-color:var(--foreground)}.clear-filters-container{text-align:center;margin-bottom:24px}.clear-filters-btn{padding:10px 24px;background:var(--destructive);color:var(--destructive-foreground);border:none;border-radius:var(--radius);font-size:14px;font-weight:500;cursor:pointer;transition:opacity .15s ease;letter-spacing:-.01em}.clear-filters-btn:hover{opacity:.9}.clear-filters-btn:active{opacity:.8}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:24px}.summary-card{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--border);border-left:3px solid var(--chart-1);box-shadow:0 1px 2px #0000000d;transition:all .2s ease;text-align:center}.summary-card:nth-child(2){border-left-color:var(--chart-2)}.summary-card:nth-child(3){border-left-color:var(--chart-4)}.card-label{font-size:12px;font-weight:500;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.card-value{font-size:24px;font-weight:600;color:var(--foreground);letter-spacing:-.025em}.card-value.primary{color:var(--foreground)}.card-value.today{color:var(--chart-2)}.card-value.week{color:var(--chart-1)}.card-value.month{color:var(--chart-6)}.card-value.paying{color:var(--chart-2)}.card-value.active{color:var(--chart-1)}.card-value.average{color:var(--chart-4)}.card-value.disabled{color:var(--destructive)}.card-percentage{font-size:14px;font-weight:500;color:var(--muted-foreground);margin-left:4px}.chart-section{min-height:360px}.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.chart-header h2{margin-bottom:0;font-size:18px;font-weight:600;color:var(--foreground);letter-spacing:-.01em}.view-toggle{display:inline-flex;background:var(--muted);border-radius:var(--radius);padding:4px;gap:4px}.view-toggle button{padding:6px 14px;background:transparent;border:none;color:var(--muted-foreground);font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease;border-radius:calc(var(--radius) - 2px);letter-spacing:-.01em}.view-toggle button:hover{background:var(--background);color:var(--foreground)}.view-toggle button.active{background:var(--background);color:var(--foreground);box-shadow:0 1px 3px #0000001a}.chart-container{margin-top:20px}.chart-empty{display:flex;align-items:center;justify-content:center;height:300px;color:var(--muted-foreground);font-size:14px;font-weight:500;background:var(--muted);border-radius:var(--radius)}.pie-chart-container{display:flex;flex-direction:column;align-items:center;gap:20px}.status-legend{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;margin-top:16px}.status-item{display:flex;align-items:center;gap:8px;padding:6px 12px;background:var(--muted);border-radius:var(--radius);transition:all .15s ease}.status-item:hover{background:var(--accent)}.status-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.status-name{color:var(--foreground);font-size:14px;font-weight:500}.status-count{color:var(--muted-foreground);font-size:14px;font-weight:600}.total-stars-section{background:linear-gradient(135deg,#fef3c7,#fde68a);border-color:#fcd34d;border-left-width:3px}.total-stars-card{display:flex;align-items:center;justify-content:center;gap:20px}.stars-icon{font-size:56px;color:#f59e0b;line-height:1}.stars-content{text-align:left}.stars-label{color:#92400e;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}.stars-value{color:#78350f;font-size:32px;font-weight:700;letter-spacing:-.025em}.character-table-wrapper{overflow-x:auto;overflow-y:auto;max-height:700px;margin-top:16px;-webkit-overflow-scrolling:touch;position:relative}.character-table-wrapper:after{content:"";position:absolute;top:0;right:0;bottom:0;width:24px;background:linear-gradient(to left,var(--card) 0%,transparent 100%);pointer-events:none;z-index:5;opacity:0;transition:opacity .3s ease}@keyframes scroll-hint-stats{0%,to{opacity:.7}50%{opacity:1}}.character-table{width:100%;border-collapse:collapse;font-size:14px}.character-table thead{background:var(--muted);position:sticky;top:0;z-index:10}.character-table th{padding:14px 16px;text-align:left;font-size:12px;font-weight:600;color:var(--foreground);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--border);white-space:nowrap}.character-table td{padding:16px;color:var(--foreground);vertical-align:middle;border-bottom:1px solid var(--border)}.character-table tbody tr{transition:background .15s ease}.character-table tbody tr:hover{background:var(--muted)}.character-table tbody tr:last-child td{border-bottom:none}.character-table .character-name{font-weight:600;color:var(--foreground)}.character-table .highlight-today{color:var(--chart-2);font-weight:600}.character-table .highlight-week{color:var(--chart-1);font-weight:600}.character-table .highlight-month{color:var(--chart-6);font-weight:600}.character-table .highlight-paying{color:var(--chart-2);font-weight:600}.character-table .highlight-stars{color:var(--chart-4);font-weight:700}.card-value.reply-rate{color:var(--chart-1)}.card-value.response-time{color:var(--chart-6)}.card-value.conversion{color:var(--chart-2)}.card-value.ratio{color:var(--chart-4)}.card-value.deep{color:var(--chart-2)}.card-value.medium{color:var(--chart-1)}.card-value.shallow{color:var(--chart-4)}.card-subtext{font-size:12px;color:var(--muted-foreground);margin-top:4px;font-weight:400}.retention-table-container{overflow-x:auto;margin-top:16px;-webkit-overflow-scrolling:touch;position:relative}.retention-table-container:after{content:"";position:absolute;top:0;right:0;bottom:0;width:24px;background:linear-gradient(to left,var(--card) 0%,transparent 100%);pointer-events:none;z-index:5;opacity:0;transition:opacity .3s ease}.retention-table{width:100%;border-collapse:collapse;font-size:14px}.retention-table thead{background:var(--muted);position:sticky;top:0;z-index:10}.retention-table th{padding:14px 16px;text-align:left;font-size:12px;font-weight:600;color:var(--foreground);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--border)}.retention-table td{padding:12px 16px;border-bottom:1px solid var(--border)}.retention-table tbody tr{transition:background .15s ease}.retention-table tbody tr:hover{background:var(--muted)}.retention-cell{padding:8px 12px;border-radius:calc(var(--radius) - 2px);text-align:center;font-weight:600;display:inline-block;min-width:60px}@media (max-width: 1024px){.chats-statistics{padding:24px 16px}.filters-row{grid-template-columns:1fr}.summary-cards{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.statistics-header h1{font-size:24px}.summary-cards{grid-template-columns:repeat(2,1fr)}.card-value{font-size:20px}.chart-header{flex-direction:column;align-items:flex-start;gap:12px}.character-table th,.character-table td{padding:12px}.character-table-wrapper{max-height:500px}.character-table-wrapper:after,.retention-table-container:after{opacity:1;animation:scroll-hint-stats 2s ease-in-out .5s 2}.view-toggle button{min-height:44px;padding:10px 16px}.select-all-btn{min-height:36px;padding:8px 14px}.clear-filters-btn{min-height:44px;padding:12px 28px}}@media (max-width: 480px){.chats-statistics{padding:16px 12px}.summary-cards{grid-template-columns:1fr}.filter-group,.statistics-section{padding:16px}.stars-value{font-size:24px}.character-table{font-size:12px}}.avg-summary-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;background:linear-gradient(135deg,var(--muted) 0%,var(--background) 100%);border-radius:var(--radius);text-align:center}.avg-summary-card .avg-value{font-size:64px;font-weight:700;color:var(--chart-1);letter-spacing:-.025em;line-height:1;margin-bottom:8px}.avg-summary-card .avg-label{font-size:18px;font-weight:500;color:var(--foreground);margin-bottom:8px}.avg-summary-card .avg-subtitle{font-size:14px;color:var(--muted-foreground);font-weight:400}.loading-spinner-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.loading-spinner{width:40px;height:40px;border:3px solid var(--primary-light);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}.loading-message{font-size:14px;color:var(--muted-foreground);font-weight:500;margin:0}.trends-page{max-width:1400px;margin:0 auto;padding:32px 24px;background:var(--background);min-height:100vh}.trends-hero{margin-bottom:32px}.trends-title{font-size:30px;font-weight:600;color:var(--foreground);margin-bottom:4px;letter-spacing:-.025em;line-height:1.2}.title-gradient{color:var(--foreground)}.trends-subtitle{font-size:14px;color:var(--muted-foreground);font-weight:400}.refresh-indicator{font-size:12px;color:var(--muted-foreground);opacity:.7;font-weight:400;margin-left:8px}.loading-shimmer{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;gap:12px}.shimmer-circle{width:40px;height:40px;border-radius:50%;border:2px solid var(--muted);border-top-color:var(--foreground);animation:spin .8s linear infinite}.shimmer-text{font-size:13px;color:var(--muted-foreground);font-weight:500}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-bottom:24px}.filter-card{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--border);box-shadow:0 1px 2px #0000000d;transition:box-shadow .2s ease}.card-content label{display:block;font-size:13px;font-weight:500;color:var(--foreground);margin-bottom:8px;letter-spacing:-.01em}.card-content select{width:100%;padding:9px 12px;border-radius:var(--radius);border:1px solid var(--input);background:var(--background);font-size:14px;font-weight:400;color:var(--foreground);cursor:pointer;transition:all .15s ease}.card-content select:hover{border-color:var(--ring)}.card-content select:focus{outline:none;border-color:var(--ring);box-shadow:0 0 0 3px #09090b1a}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.checkbox-item{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--background);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:all .15s ease}.checkbox-item input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--foreground)}.checkbox-label{flex:1;font-size:13px;font-weight:500;color:var(--foreground)}.metrics-selector{background:var(--card);border-radius:var(--radius);padding:20px;margin-bottom:24px;border:1px solid var(--border);box-shadow:0 1px 2px #0000000d}.metrics-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.metrics-selector h3{font-size:15px;font-weight:500;color:var(--foreground);margin:0;letter-spacing:-.01em}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.metric-pill{padding:10px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--background);cursor:pointer;transition:all .15s ease;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--foreground)}.metric-pill:hover{background:var(--accent);border-color:var(--ring)}.metric-pill.active{background:var(--foreground);border-color:var(--foreground);color:var(--primary-foreground)}.pill-label{flex:1;text-align:center}.error-card{background:var(--destructive-light);border:1px solid var(--destructive);border-radius:var(--radius);padding:12px 16px;margin-bottom:24px;font-size:13px;font-weight:500;color:var(--destructive)}.chart-card{background:var(--card);border-radius:var(--radius);padding:24px;margin-bottom:24px;border:1px solid var(--border);box-shadow:0 1px 2px #0000000d}.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--border);flex-wrap:wrap;gap:16px}.chart-header h3{font-size:16px;font-weight:600;color:var(--foreground);margin:0;letter-spacing:-.025em}.legend-items{display:flex;flex-wrap:wrap;gap:16px}.legend-item{display:flex;align-items:center;gap:8px}.legend-dot{width:8px;height:8px;border-radius:50%}.legend-name{font-size:13px;font-weight:400;color:var(--muted-foreground)}.chart-wrapper{margin-top:16px}.glass-tooltip{background:var(--card);border-radius:var(--radius);padding:10px 12px;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;border:1px solid var(--border)}.tooltip-date{font-size:12px;font-weight:600;color:var(--foreground);margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid var(--border)}.tooltip-items{display:flex;flex-direction:column;gap:4px}.tooltip-row{display:flex;align-items:center;gap:8px}.tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.tooltip-label{flex:1;font-size:12px;color:var(--muted-foreground);font-weight:400}.tooltip-value{font-size:12px;font-weight:600;color:var(--foreground)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 20px;text-align:center}.empty-state h3{font-size:15px;font-weight:600;color:var(--foreground);margin-bottom:8px}.empty-state p{font-size:13px;color:var(--muted-foreground)}.summary-section{margin-top:24px}.summary-section>h3{font-size:16px;font-weight:600;color:var(--foreground);margin-bottom:16px;letter-spacing:-.025em}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.summary-card{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--border);border-left:3px solid var(--border);box-shadow:0 1px 2px #0000000d}.summary-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}.summary-header h4{font-size:14px;font-weight:600;color:var(--foreground);margin:0;letter-spacing:-.01em}.summary-type{font-size:11px;font-weight:500;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em;background:var(--muted);padding:2px 8px;border-radius:calc(var(--radius) - 4px)}.summary-metrics{display:flex;flex-direction:column;gap:10px}.summary-metric{padding:12px;background:var(--muted);border-radius:calc(var(--radius) - 2px);transition:all .15s ease}.summary-metric:hover{background:var(--accent)}.metric-details{flex:1}.metric-name{display:block;font-size:12px;font-weight:500;color:var(--muted-foreground);margin-bottom:4px}.metric-values{display:flex;align-items:baseline;gap:10px}.metric-total{font-size:18px;font-weight:600;color:var(--foreground)}.metric-avg{font-size:12px;color:var(--muted-foreground);font-weight:400}@media (max-width: 1024px){.trends-page{padding:24px 16px}.filters-grid{grid-template-columns:1fr}}.data-table-section{background:var(--card);border-radius:var(--radius);padding:24px;border:1px solid var(--border);box-shadow:0 1px 2px #0000000d;margin-top:24px}.data-table-section h3{font-size:15px;font-weight:500;color:var(--foreground);margin:0 0 16px;letter-spacing:-.01em}.data-table-wrapper{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table thead{background:var(--muted);border-bottom:1px solid var(--border)}.data-table th{padding:12px 16px;text-align:left;font-weight:500;color:var(--foreground);white-space:nowrap;letter-spacing:-.01em}.data-table tbody tr{border-bottom:1px solid var(--border);transition:background .15s ease}.data-table tbody tr:hover{background:var(--muted)}.data-table tbody tr:last-child{border-bottom:none}.data-table td{padding:12px 16px;color:var(--foreground)}.data-table .date-cell{font-weight:500;white-space:nowrap}.data-table .customer-cell{font-weight:500}.data-table .amount-header{text-align:right}.data-table .amount-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.data-table .salesperson-cell{font-weight:500}.data-table .account-cell{color:var(--muted-foreground)}.data-table .value-cell{text-align:right;font-variant-numeric:tabular-nums}.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}.pagination-btn{background:var(--primary);color:var(--primary-foreground);border:none;padding:8px 16px;border-radius:calc(var(--radius) - 2px);font-size:13px;font-weight:500;cursor:pointer;transition:opacity .15s ease;letter-spacing:-.01em}.pagination-btn:disabled{opacity:.5;cursor:not-allowed}.pagination-info{font-size:13px;color:var(--muted-foreground);font-weight:500}@media (max-width: 768px){.trends-title{font-size:24px}.checkbox-grid{grid-template-columns:1fr}.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.chart-header{flex-direction:column;align-items:flex-start}.summary-cards{grid-template-columns:1fr}}@media (max-width: 480px){.trends-page{padding:16px 12px}.filter-card,.metrics-selector,.chart-card{padding:16px}.metrics-grid{grid-template-columns:1fr}}.chats-table-page{max-width:1600px;margin:0 auto;padding:32px 24px;background:var(--background);min-height:100vh}.page-header{margin-bottom:32px}.page-title{font-size:30px;font-weight:600;color:var(--foreground);margin-bottom:4px;letter-spacing:-.025em;line-height:1.2}.page-subtitle{font-size:14px;color:var(--muted-foreground);font-weight:400}.loading-state,.error-state{display:flex;align-items:center;justify-content:center;height:400px;font-size:16px;color:var(--muted-foreground)}.error-state{color:var(--destructive);font-weight:500}.filters-section{margin-bottom:24px}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.filter-card{background:var(--card);border-radius:var(--radius);padding:14px 16px;border:1px solid var(--border);box-shadow:0 1px 2px #0000000d;transition:box-shadow .2s ease}.filter-card:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.search-card{grid-column:span 1}.filter-label{display:block;font-size:13px;font-weight:500;color:var(--foreground);margin-bottom:8px;letter-spacing:-.01em}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.card-header h3{font-size:14px;font-weight:500;color:var(--foreground);margin:0;display:flex;align-items:center;gap:8px;letter-spacing:-.01em}.header-actions{display:flex;align-items:center;gap:8px}.selection-badge{background:var(--muted);padding:2px 8px;border-radius:calc(var(--radius) - 2px);font-size:12px;font-weight:500;color:var(--muted-foreground)}.select-all-btn{background:var(--primary);color:var(--primary-foreground);border:none;padding:4px 10px;border-radius:calc(var(--radius) - 2px);font-size:11px;font-weight:500;cursor:pointer;transition:opacity .15s ease;letter-spacing:-.01em}.select-all-btn:hover{opacity:.9}.select-all-btn:active{opacity:.8}.checkbox-grid{display:flex;flex-wrap:wrap;gap:6px}.checkbox-item{display:flex;align-items:center;gap:6px;padding:5px 10px;background:var(--background);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:all .15s ease;font-size:12px}.checkbox-item:hover{background:var(--accent);border-color:var(--ring)}.checkbox-item.selected{background:var(--foreground);border-color:var(--foreground)}.checkbox-item input[type=checkbox]{width:14px;height:14px;cursor:pointer;accent-color:var(--foreground);margin:0}.checkbox-label{font-size:12px;font-weight:500;color:var(--foreground);display:flex;align-items:center;gap:4px;white-space:nowrap}.checkbox-item.selected .checkbox-label{color:var(--primary-foreground)}.sales-badge{display:inline-flex;align-items:center;gap:2px;margin-left:4px}.filter-select,.search-input{width:100%;padding:9px 12px;border-radius:var(--radius);border:1px solid var(--input);background:var(--background);font-size:14px;font-weight:400;color:var(--foreground);transition:all .15s ease}.filter-select{cursor:pointer}.filter-select:hover,.search-input:hover{border-color:var(--ring)}.filter-select:focus,.search-input:focus{outline:none;border-color:var(--ring);box-shadow:0 0 0 3px #09090b1a}.search-input::placeholder{color:var(--muted-foreground)}.summary-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:24px}.summary-card{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--border);border-left:3px solid var(--chart-1);box-shadow:0 1px 2px #0000000d;transition:all .2s ease}.summary-card:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.summary-card:nth-child(2){border-left-color:var(--chart-4)}.summary-card:nth-child(3){border-left-color:var(--chart-2)}.summary-card:nth-child(4){border-left-color:var(--chart-6)}.summary-label{font-size:12px;font-weight:500;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.summary-value{font-size:24px;font-weight:600;color:var(--foreground);letter-spacing:-.025em}.table-section{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);box-shadow:0 1px 2px #0000000d;overflow:hidden}.table-wrapper{overflow-x:auto;overflow-y:auto;max-height:700px;-webkit-overflow-scrolling:touch;position:relative}.table-section{position:relative}.table-section:after{content:"";position:absolute;top:0;right:0;bottom:0;width:24px;background:linear-gradient(to left,var(--card) 0%,transparent 100%);pointer-events:none;z-index:5;opacity:0;transition:opacity .3s ease}@media (max-width: 768px){.table-section:after{opacity:1;animation:scroll-hint 2s ease-in-out .5s 2}@keyframes scroll-hint{0%,to{opacity:.7}50%{opacity:1}}}.chats-table{width:100%;border-collapse:collapse;font-size:14px}.chats-table thead{background:var(--muted);position:sticky;top:0;z-index:10}.chats-table th{padding:14px 16px;text-align:left;font-size:12px;font-weight:600;color:var(--foreground);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--border);white-space:nowrap}.chats-table th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s ease}.chats-table th.sortable:hover{background:var(--accent)}.chats-table tbody tr{border-bottom:1px solid var(--border);transition:background .15s ease}.chats-table tbody tr:hover{background:var(--muted)}.chats-table tbody tr:last-child{border-bottom:none}.chats-table td{padding:16px;color:var(--foreground);vertical-align:middle}.empty-state{text-align:center;padding:48px 20px;color:var(--muted-foreground);font-size:14px;font-weight:500}.chat-title-cell{min-width:200px;max-width:300px}.chat-title-wrapper{display:flex;flex-direction:column;gap:4px}.chat-title{font-weight:600;color:var(--foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-username{font-size:12px;color:var(--muted-foreground);font-weight:400}.number-cell{text-align:right;font-variant-numeric:tabular-nums}.date-cell{font-size:13px;color:var(--muted-foreground);white-space:nowrap}.date-with-direction{display:flex;align-items:center;gap:6px}.direction-icon{flex-shrink:0}.direction-icon.incoming{color:var(--chart-2)}.direction-icon.outgoing{color:var(--chart-4)}.message-breakdown{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.message-breakdown strong{font-weight:600;color:var(--foreground)}.message-detail{font-size:11px;color:var(--muted-foreground)}.stars-cell{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.stars-value{font-weight:600;color:var(--chart-4);font-size:14px}.transaction-count{font-size:11px;color:var(--muted-foreground)}.status-badge{display:inline-block;padding:4px 10px;border-radius:calc(var(--radius) - 2px);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.status-whale{background:var(--status-whale-bg, #fef3c7);color:var(--status-whale-text, #92400e)}.status-customer{background:var(--status-customer-bg, #d1fae5);color:var(--status-customer-text, #065f46)}.status-potential{background:var(--status-potential-bg, #dbeafe);color:var(--status-potential-text, #1e40af)}.status-cheap{background:var(--status-cheap-bg, #fed7aa);color:var(--status-cheap-text, #9a3412)}.status-stop{background:var(--destructive-light);color:var(--destructive)}.status-unknown{background:var(--muted);color:var(--muted-foreground)}.pagination-section{display:flex;align-items:center;justify-content:center;gap:20px;padding:24px;margin-top:16px}.pagination-btn{background:var(--primary);color:var(--primary-foreground);border:none;padding:10px 20px;border-radius:var(--radius);font-size:14px;font-weight:500;cursor:pointer;transition:opacity .15s ease;letter-spacing:-.01em}.pagination-btn:hover:not(:disabled){opacity:.9}.pagination-btn:disabled{opacity:.4;cursor:not-allowed}.pagination-info{font-size:14px;color:var(--foreground);font-weight:500}.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--overlay-bg, rgba(0, 0, 0, .3));-webkit-backdrop-filter:var(--overlay-backdrop, blur(4px));backdrop-filter:var(--overlay-backdrop, blur(4px));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:1000}.loading-overlay .loading-spinner{width:40px;height:40px;border:3px solid var(--primary-light, rgba(0, 136, 204, .2));border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 1024px){.chats-table-page{padding:24px 16px}.filters-grid{grid-template-columns:1fr}.summary-section{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.page-title{font-size:24px}.summary-section{grid-template-columns:1fr}.chats-table{font-size:13px}.chats-table th,.chats-table td{padding:12px}.table-wrapper{max-height:500px}}@media (max-width: 480px){.chats-table-page{padding:16px 12px}.filter-card,.summary-card{padding:16px}.summary-value{font-size:20px}.chats-table{font-size:12px}}:root{--primary: #0088cc;--primary-hover: #0077b3;--primary-light: rgba(0, 136, 204, .1);--primary-foreground: #ffffff;--header-bg-user: #0088cc;--header-bg-admin: #1a1a1a;--header-text: #ffffff;--header-border-user: #0077b3;--header-border-admin: #333333;--background: #ffffff;--background-secondary: #f5f5f5;--background-tertiary: #fafafa;--foreground: #09090b;--card: #ffffff;--card-foreground: #09090b;--card-hover: #fafafa;--border: #e4e4e7;--border-light: #f0f0f0;--input: #e4e4e7;--input-focus: #0088cc;--ring: #18181b;--muted: #f4f4f5;--muted-foreground: #71717a;--accent: #f4f4f5;--accent-foreground: #09090b;--destructive: #ef4444;--destructive-hover: #dc2626;--destructive-foreground: #fafafa;--destructive-light: rgba(239, 68, 68, .1);--success: #22c55e;--success-hover: #16a34a;--success-foreground: #ffffff;--success-light: rgba(34, 197, 94, .1);--warning: #f59e0b;--warning-hover: #d97706;--warning-foreground: #ffffff;--warning-light: rgba(245, 158, 11, .1);--info: #3b82f6;--info-hover: #2563eb;--info-foreground: #ffffff;--info-light: rgba(59, 130, 246, .1);--status-online: #22c55e;--status-offline: #71717a;--status-busy: #ef4444;--status-away: #f59e0b;--status-whale-bg: #fef3c7;--status-whale-text: #92400e;--status-customer-bg: #d1fae5;--status-customer-text: #065f46;--status-potential-bg: #dbeafe;--status-potential-text: #1e40af;--status-cheap-bg: #fed7aa;--status-cheap-text: #9a3412;--chart-1: #2563eb;--chart-2: #7c3aed;--chart-3: #db2777;--chart-4: #ea580c;--chart-5: #16a34a;--chart-6: #0891b2;--chart-7: #4f46e5;--chart-8: #9333ea;--info-border: #bae6fd;--destructive-border: rgba(239, 68, 68, .2);--message-sent: #0088cc;--message-sent-text: #ffffff;--message-received: #f4f4f5;--message-received-text: #09090b;--shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);--shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .04);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .08), 0 10px 10px -5px rgba(0, 0, 0, .03);--radius-xs: 4px;--radius-sm: 6px;--radius: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-full: 9999px;--transition-fast: .15s ease;--transition-normal: .2s ease;--transition-slow: .3s ease;--z-dropdown: 100;--z-sticky: 200;--z-modal-backdrop: 900;--z-modal: 1000;--z-tooltip: 1100;--sidebar-bg: #ffffff;--sidebar-border: #e4e4e7;--sidebar-item-hover: #f4f4f5;--sidebar-item-active: rgba(0, 136, 204, .1);--scrollbar-track: #f4f4f5;--scrollbar-thumb: #d4d4d8;--scrollbar-thumb-hover: #a1a1aa;--overlay-bg: rgba(0, 0, 0, .5);--overlay-backdrop: blur(4px)}[data-theme=dark]{--primary: #0ea5e9;--primary-hover: #38bdf8;--primary-light: rgba(14, 165, 233, .15);--primary-foreground: #ffffff;--header-bg-user: #0077b3;--header-bg-admin: #0d0d0d;--header-text: #ffffff;--header-border-user: #005a8c;--header-border-admin: #262626;--background: #09090b;--background-secondary: #18181b;--background-tertiary: #1f1f23;--foreground: #fafafa;--card: #18181b;--card-foreground: #fafafa;--card-hover: #27272a;--border: #27272a;--border-light: #3f3f46;--input: #27272a;--input-focus: #0ea5e9;--ring: #fafafa;--muted: #27272a;--muted-foreground: #a1a1aa;--accent: #27272a;--accent-foreground: #fafafa;--destructive: #f87171;--destructive-hover: #ef4444;--destructive-foreground: #fafafa;--destructive-light: rgba(248, 113, 113, .15);--success: #4ade80;--success-hover: #22c55e;--success-foreground: #09090b;--success-light: rgba(74, 222, 128, .15);--warning: #fbbf24;--warning-hover: #f59e0b;--warning-foreground: #09090b;--warning-light: rgba(251, 191, 36, .15);--info: #60a5fa;--info-hover: #3b82f6;--info-foreground: #09090b;--info-light: rgba(96, 165, 250, .15);--status-online: #4ade80;--status-offline: #71717a;--status-busy: #f87171;--status-away: #fbbf24;--status-whale-bg: rgba(254, 243, 199, .15);--status-whale-text: #fbbf24;--status-customer-bg: rgba(209, 250, 229, .15);--status-customer-text: #4ade80;--status-potential-bg: rgba(219, 234, 254, .15);--status-potential-text: #60a5fa;--status-cheap-bg: rgba(254, 215, 170, .15);--status-cheap-text: #fb923c;--chart-1: #3b82f6;--chart-2: #8b5cf6;--chart-3: #ec4899;--chart-4: #f97316;--chart-5: #22c55e;--chart-6: #06b6d4;--chart-7: #6366f1;--chart-8: #a855f7;--info-border: rgba(96, 165, 250, .3);--destructive-border: rgba(248, 113, 113, .3);--message-sent: #0ea5e9;--message-sent-text: #ffffff;--message-received: #27272a;--message-received-text: #fafafa;--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .2);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 2px 4px -1px rgba(0, 0, 0, .2);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4), 0 4px 6px -2px rgba(0, 0, 0, .2);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .5), 0 10px 10px -5px rgba(0, 0, 0, .3);--sidebar-bg: #18181b;--sidebar-border: #27272a;--sidebar-item-hover: #27272a;--sidebar-item-active: rgba(14, 165, 233, .15);--scrollbar-track: #18181b;--scrollbar-thumb: #3f3f46;--scrollbar-thumb-hover: #52525b;--overlay-bg: rgba(0, 0, 0, .7);--overlay-backdrop: blur(4px)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--scrollbar-track);border-radius:var(--radius)}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:var(--radius)}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}*,*:before,*:after{transition:background-color var(--transition-normal),border-color var(--transition-normal),box-shadow var(--transition-normal)}input,textarea,select,button{transition:background-color var(--transition-fast),border-color var(--transition-fast),box-shadow var(--transition-fast),transform var(--transition-fast),opacity var(--transition-fast)}.no-transitions,.no-transitions *,.no-transitions *:before,.no-transitions *:after{transition:none!important}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}::selection{background:var(--primary-light);color:var(--foreground)}[data-theme=dark] ::selection{background:#0ea5e94d}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;font-size:14px;font-weight:500;line-height:1.4;border-radius:var(--radius);border:none;cursor:pointer;transition:all var(--transition-fast);text-decoration:none;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.btn-primary{background:var(--primary);color:var(--primary-foreground)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-primary:active:not(:disabled){transform:translateY(0);box-shadow:none}.btn-secondary{background:var(--muted);color:var(--foreground);border:1px solid var(--border)}.btn-secondary:hover:not(:disabled){background:var(--accent);border-color:var(--ring)}.btn-outline{background:transparent;color:var(--foreground);border:1px solid var(--border)}.btn-outline:hover:not(:disabled){background:var(--accent);border-color:var(--ring)}.btn-ghost{background:transparent;color:var(--foreground)}.btn-ghost:hover:not(:disabled){background:var(--accent)}.btn-destructive{background:var(--destructive);color:var(--destructive-foreground)}.btn-destructive:hover:not(:disabled){background:var(--destructive-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-success{background:var(--success);color:var(--success-foreground)}.btn-success:hover:not(:disabled){background:var(--success-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-warning{background:var(--warning);color:var(--warning-foreground)}.btn-warning:hover:not(:disabled){background:var(--warning-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-sm{padding:6px 12px;font-size:12px}.btn-lg{padding:14px 28px;font-size:16px}.btn-xl{padding:18px 36px;font-size:18px}.btn-icon{width:40px;height:40px;padding:0;border-radius:var(--radius)}.btn-icon.btn-sm{width:32px;height:32px}.btn-icon.btn-lg{width:48px;height:48px}.btn-full{width:100%}.btn-group{display:inline-flex;gap:0}.btn-group .btn{border-radius:0}.btn-group .btn:first-child{border-radius:var(--radius) 0 0 var(--radius)}.btn-group .btn:last-child{border-radius:0 var(--radius) var(--radius) 0}.btn-group .btn:not(:last-child){border-right:1px solid var(--border)}.btn-loading{position:relative;color:transparent!important}.btn-loading:after{content:"";position:absolute;width:16px;height:16px;top:50%;left:50%;margin-top:-8px;margin-left:-8px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:btn-spin .6s linear infinite}@keyframes btn-spin{to{transform:rotate(360deg)}}a.btn{text-decoration:none}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);transition:box-shadow var(--transition-fast)}.card:hover{box-shadow:var(--shadow-md)}.card-header{padding:20px 24px;border-bottom:1px solid var(--border)}.card-header h2,.card-header h3,.card-header h4{margin:0;font-weight:600;color:var(--foreground)}.card-body{padding:24px}.card-footer{padding:16px 24px;border-top:1px solid var(--border);background:var(--muted);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--overlay-bg);-webkit-backdrop-filter:var(--overlay-backdrop);backdrop-filter:var(--overlay-backdrop);display:flex;align-items:center;justify-content:center;z-index:var(--z-modal-backdrop);animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:var(--card);border-radius:var(--radius-lg);width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-xl);border:1px solid var(--border);animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border)}.modal-header h2{margin:0;font-size:1.25rem;font-weight:600;color:var(--foreground)}.modal-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:var(--radius-sm);font-size:1.5rem;color:var(--muted-foreground);cursor:pointer;transition:all var(--transition-fast);line-height:1;padding:0}.modal-close:hover{background:var(--muted);color:var(--foreground)}.modal-body{padding:24px}.modal-footer{display:flex;gap:12px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--border);background:var(--muted);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.form-group{margin-bottom:1.25rem}.form-group:last-child{margin-bottom:0}.form-label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:500;color:var(--foreground)}.form-input,.form-select,.form-textarea{width:100%;padding:.75rem 1rem;border:1px solid var(--input);border-radius:var(--radius);font-size:.875rem;transition:all var(--transition-fast);box-sizing:border-box;background:var(--background);color:var(--foreground)}.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.form-input:disabled,.form-select:disabled,.form-textarea:disabled{background:var(--muted);cursor:not-allowed;color:var(--muted-foreground)}.form-input::placeholder,.form-textarea::placeholder{color:var(--muted-foreground)}.form-hint{display:block;margin-top:.5rem;font-size:.75rem;color:var(--muted-foreground)}.form-error{display:block;margin-top:.5rem;font-size:.75rem;color:var(--destructive)}.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--radius-full);font-size:12px;font-weight:500;line-height:1.4}.badge-primary{background:var(--primary-light);color:var(--primary)}.badge-secondary{background:var(--muted);color:var(--muted-foreground)}.badge-success{background:var(--success-light);color:var(--success)}.badge-destructive{background:var(--destructive-light);color:var(--destructive)}.badge-warning{background:var(--warning-light);color:var(--warning)}.badge-info{background:var(--info-light);color:var(--info)}.alert{padding:1rem;border-radius:var(--radius);margin-bottom:1rem;display:flex;align-items:flex-start;gap:.75rem}.alert-icon{flex-shrink:0;width:20px;height:20px}.alert-content{flex:1}.alert-title{font-weight:600;margin-bottom:.25rem}.alert-description{font-size:.875rem}.alert-success{background:var(--success-light);border:1px solid var(--success);color:var(--success)}.alert-error{background:var(--destructive-light);border:1px solid var(--destructive);color:var(--destructive)}.alert-warning{background:var(--warning-light);border:1px solid var(--warning);color:var(--warning)}.alert-info{background:var(--info-light);border:1px solid var(--info);color:var(--info)}.avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--radius-full);background:var(--muted);color:var(--muted-foreground);font-weight:600;font-size:14px;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-sm{width:32px;height:32px;font-size:12px}.avatar-lg{width:56px;height:56px;font-size:18px}.avatar-xl{width:72px;height:72px;font-size:24px}.loading-spinner{display:inline-block;width:24px;height:24px;border:2px solid var(--primary-light);border-top-color:var(--primary);border-radius:var(--radius-full);animation:spin .8s linear infinite}.loading-spinner-sm{width:16px;height:16px;border-width:2px}.loading-spinner-lg{width:40px;height:40px;border-width:3px}@keyframes spin{to{transform:rotate(360deg)}}.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--overlay-bg);-webkit-backdrop-filter:var(--overlay-backdrop);backdrop-filter:var(--overlay-backdrop);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:var(--z-modal)}.tooltip{position:relative;display:inline-block}.tooltip-content{position:absolute;bottom:100%;left:50%;transform:translate(-50%);padding:6px 10px;background:var(--foreground);color:var(--background);font-size:12px;border-radius:var(--radius-sm);white-space:nowrap;opacity:0;visibility:hidden;transition:all var(--transition-fast);pointer-events:none;margin-bottom:8px}.tooltip-content:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:5px solid transparent;border-top-color:var(--foreground)}.tooltip:hover .tooltip-content{opacity:1;visibility:visible}.divider{height:1px;background:var(--border);margin:1rem 0}.divider-vertical{width:1px;height:100%;background:var(--border);margin:0 1rem}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border)}.table th{background:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground)}.table tbody tr:hover{background:var(--accent)}.table tbody tr:last-child td{border-bottom:none}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center}.empty-state-icon{width:64px;height:64px;margin-bottom:16px;color:var(--muted-foreground)}.empty-state-title{font-size:18px;font-weight:600;color:var(--foreground);margin-bottom:8px}.empty-state-description{font-size:14px;color:var(--muted-foreground);max-width:400px}.app{height:100vh;display:flex;flex-direction:column;background:var(--background-secondary)}.app-body{flex:1;display:flex;overflow:hidden}.main-content{flex:1;display:flex;flex-direction:column;background:var(--background);min-width:0;overflow:hidden}.main-content.full-width{overflow-y:auto}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted-foreground)}.empty-state h2{margin-bottom:.5rem;font-size:1.5rem;font-weight:500;color:var(--foreground)}.empty-state p{color:var(--muted-foreground)}.sidebar-backdrop{display:none}@media (max-width: 768px){.app-body{position:relative;flex-direction:column}.sidebar-backdrop{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:var(--overlay-bg, rgba(0, 0, 0, .5));-webkit-backdrop-filter:var(--overlay-backdrop, blur(4px));backdrop-filter:var(--overlay-backdrop, blur(4px));z-index:99;animation:fadeIn .3s ease-in-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.main-content{width:100%}.empty-state h2{font-size:1.2rem}.empty-state p{font-size:.9rem;padding:0 1rem}}
