.historical-data{padding:0;width:100vw;min-height:100vh;background:#f9fafb;margin:0;box-sizing:border-box}.historical-header{text-align:center;margin-bottom:40px}.historical-title{font-size:2.5rem;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:8px;margin-top:32px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;letter-spacing:-.025em}.historical-subtitle{color:#6b7280;font-size:1.1rem;font-weight:400;margin-bottom:0}.chart-section{background:#fff;border-radius:16px;box-shadow:0 8px 32px #0000001a;padding:24px;margin:0 20px 24px;border:1px solid #e5e7eb}.chart-title{font-size:1.5rem;font-weight:600;color:#1f2937;margin-bottom:16px;display:flex;align-items:center;gap:12px}.chart-title:before{content:"";width:4px;height:24px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:2px}.avg-pe-badge{display:inline-flex;align-items:center;background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;padding:8px 16px;border-radius:20px;font-weight:600;font-size:14px;margin-bottom:20px;border:1px solid #6ee7b7;box-shadow:0 2px 8px #10b98133}.chart-container{width:100%;height:600px;min-height:500px;margin-top:20px;position:relative;overflow:visible}.chart-container svg{display:block;width:100%;height:100%}.axis-label{font-size:14px;font-weight:600;fill:#374151}.tick text{font-size:12px;fill:#6b7280}.tick line{stroke:#e5e7eb}.grid line{stroke:#f3f4f6;stroke-opacity:.7}.grid path{stroke-width:0}.tooltip{position:absolute;background:#fffffff2;border:1px solid #e5e7eb;border-radius:8px;padding:12px;font-size:12px;pointer-events:none;box-shadow:0 4px 12px #0000001a;z-index:1000}.tooltip-title{font-weight:600;color:#1f2937;margin-bottom:4px}.tooltip-value{color:#374151}.back-button{position:fixed;top:20px;left:20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:50px;padding:12px 24px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px #667eea4d;transition:all .3s ease;text-decoration:none;display:inline-flex;align-items:center;gap:8px;z-index:1000}.back-button:hover{background:linear-gradient(135deg,#5a6fd8,#6a4190);transform:translateY(-2px);box-shadow:0 8px 20px #667eea66;color:#fff;text-decoration:none}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px;margin:0 20px 40px;max-width:none}.stat-card{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:12px;padding:20px;border:1px solid #e2e8f0;text-align:center}.stat-value{font-size:1.8rem;font-weight:700;color:#1f2937;margin-bottom:4px}.stat-label{font-size:.9rem;color:#6b7280;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px}.loading-spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-left-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;text-align:center}.error-container button{background:#667eea;color:#fff;border:none;border-radius:8px;padding:12px 24px;font-size:14px;font-weight:600;cursor:pointer;margin-top:16px}.error-container button:hover{background:#5a6fd8}@media (max-width: 1000px){.historical-data{padding:15px}.historical-title{font-size:2rem}.chart-section{padding:16px;margin:0 0 20px}.back-button{position:relative;top:auto;left:auto;margin-bottom:20px}.stats-grid{grid-template-columns:1fr;margin:0 0 30px}.chart-container{height:400px;min-height:350px}}.demo-notice{text-align:center;margin:24px 0;padding:16px;background-color:#f0f9ff;border:1px solid #0ea5e9;border-radius:8px;color:#0c4a6e}.demo-notice-button{color:#0ea5e9;text-decoration:none;background:none;border:none;cursor:pointer;font-size:inherit;font-weight:500;padding:4px 8px;border-radius:4px;transition:all .2s ease;margin:0 4px}.demo-notice-button:hover{color:#0284c7;background-color:#0ea5e91a;text-decoration:underline}.demo-notice-button.login{color:#0ea5e9}.demo-notice-button.register{background-color:#0ea5e9;color:#fff;font-weight:600}.demo-notice-button.register:hover{background-color:#0284c7;color:#fff;text-decoration:none}.demo-notice-text{margin-bottom:8px}.table-container{overflow-x:auto;border-radius:12px;box-shadow:0 8px 32px #0000001a;background:#fff;margin:24px 0;position:relative}table{border-collapse:separate;border-spacing:0;width:100%;background:#fff;min-width:900px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}th,td{padding:8px 6px;text-align:left;border-bottom:1px solid #f0f0f0;vertical-align:middle;white-space:nowrap;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}th,td{min-width:80px;max-width:150px}th{cursor:pointer;background:#f8fafc;color:#374151;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.3px;position:sticky;top:0;z-index:10;transition:all .3s ease;border:none;border-bottom:2px solid #e5e7eb;white-space:normal;word-break:break-word;overflow:visible;text-overflow:unset}th:hover{background:#f1f5f9;color:#1f2937;transform:translateY(-1px)}th:first-child,td:first-child{position:sticky;left:0;z-index:5;background:#f3f4f6;border-right:2px solid #e5e7eb}th:first-child{z-index:15;background:#e5e7eb}td:first-child:after{content:"";position:absolute;top:0;right:-4px;width:4px;height:100%;background:linear-gradient(to right,rgba(0,0,0,.1),transparent);pointer-events:none}td{font-size:13px;color:#333;transition:all .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}input[type=number]{width:55px;border:2px solid #e1e5e9;border-radius:4px;padding:3px 5px;font-size:12px;transition:all .3s ease;background:#fafbfc;color:#222}input[type=number]:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a;transform:translateY(-1px)}button{border:none;border-radius:8px;padding:8px 16px;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:13px}button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.up{color:#10b981;font-weight:600;background:#10b9811a;padding:2px 4px;border-radius:4px;font-size:11px}.down{color:#ef4444;font-weight:600;background:#ef44441a;padding:2px 4px;border-radius:4px;font-size:11px}#stockTable tbody tr{transition:all .2s ease;border-left:3px solid transparent}#stockTable tbody tr:hover{background:linear-gradient(135deg,#f8fafc,#f1f5f9);transform:translate(4px);border-left-color:#667eea;box-shadow:0 4px 12px #0000000d}#stockTable tbody tr:hover td:first-child{background:linear-gradient(135deg,#f8fafc,#f1f5f9)}.filter-container{margin:24px 0;padding:20px;background:#f8fafc;border-radius:16px;box-shadow:0 10px 25px #0000001a;border:1px solid #e5e7eb}.filter-title{font-size:18px;font-weight:700;color:#000;margin-bottom:16px;text-align:left;text-transform:uppercase;letter-spacing:1px}.filter-row{display:flex;gap:20px;align-items:end;flex-wrap:wrap;padding:20px;background:#fffffff2;border-radius:12px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 8px 32px #0000001a}.filter-group{display:flex;flex-direction:column;gap:8px}.filter-group label{font-weight:600;color:#374151;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.filter-group select{padding:10px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;transition:all .3s ease;min-width:180px;color:#222}.filter-group select option{color:#222;background:#fff}.filter-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.filter-actions{display:flex;gap:12px;align-items:center}.clear-filters{background:#ef4444;color:#fff;border:none;padding:10px 20px;border-radius:25px;cursor:pointer;font-size:13px;font-weight:600;transition:all .3s ease}.clear-filters:hover{background:#dc2626;transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.end-eps-container{display:flex;flex-direction:column;align-items:flex-start}.end-eps-input{width:80px;border:2px solid #e1e5e9;border-radius:8px;padding:6px 10px;font-size:12px;transition:all .3s ease;background:#fafbfc;color:#222}.end-eps-input:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.end-eps-status{color:#374151;font-size:.95em;margin-top:4px;line-height:1.3}.page-header{display:flex;justify-content:space-between;align-items:center;margin:32px 0}.page-title{font-size:2.5rem;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;letter-spacing:-.025em}.user-info{display:flex;align-items:center;gap:16px;color:#6b7280;font-size:14px}.dashboard{min-height:100vh;padding:0 20px}.logout-btn{background:#ef4444;color:#fff;border:none;padding:8px 16px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;transition:all .3s ease}.logout-btn:hover{background:#dc2626;transform:translateY(-1px)}.add-ticker-container{margin:24px 0;text-align:center}.stock-count-container{margin:16px 0;text-align:center}.stock-count-info{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:16px;box-shadow:0 4px 16px #0000000f;padding:12px 20px;border:1px solid #e2e8f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.stock-count-number{font-size:24px;font-weight:700;color:#1e293b;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.stock-count-label{font-size:16px;font-weight:500;color:#475569}.user-type-info{font-size:14px;color:#64748b;font-weight:400}.limit-info{color:#8b5cf6;font-weight:500}.add-ticker-input-group{display:flex;align-items:center;gap:12px;justify-content:center}.add-ticker-input{padding:12px 20px;border-radius:16px;border:2px solid #e2e8f0;font-size:16px;width:220px;outline:none;transition:all .3s ease;background:#fff;color:#222;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.add-ticker-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;transform:translateY(-1px)}.add-ticker-btn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:16px;padding:12px 24px;font-size:16px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px #10b9814d;transition:all .3s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.add-ticker-btn:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 8px 20px #10b98166}.add-ticker-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.flash-messages{margin-top:16px;text-align:center}.flash-message{display:inline-block;padding:8px 20px;border-radius:12px;margin:4px;font-weight:500;font-size:14px;transition:all .3s ease;animation:slideIn .4s ease}.flash-message.success{background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;border:1px solid #6ee7b7;box-shadow:0 4px 12px #10b98133}.flash-message.error{background:linear-gradient(135deg,#fee2e2,#fecaca);color:#991b1b;border:1px solid #fca5a5;box-shadow:0 4px 12px #ef444433}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.recalculate-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;padding:14px 28px;font-size:16px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px #667eea4d;transition:all .3s ease;margin:24px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.recalculate-btn:hover:not(:disabled){background:linear-gradient(135deg,#5a6fd8,#6a4190);transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.recalculate-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.loading-spinner{width:40px;height:40px;border:4px solid #f3f4f6;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}.error-container h2{color:#ef4444;margin-bottom:16px}.error-container button{background:#667eea;color:#fff;padding:12px 24px;border-radius:8px;margin-top:16px}.table-container::-webkit-scrollbar{height:8px}.table-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.table-container::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px;transition:background .3s ease}.table-container::-webkit-scrollbar-thumb:hover{background:#94a3b8}.table-container{scrollbar-width:thin;scrollbar-color:#cbd5e1 #f1f5f9}@media (max-width: 768px){.dashboard{padding:0 10px}table{font-size:12px}th,td{padding:12px 8px}.page-title{font-size:2rem}.filter-row{flex-direction:column;align-items:stretch}.page-header{flex-direction:column;gap:16px;text-align:center}.add-ticker-input-group{flex-direction:column}.add-ticker-input{width:100%;max-width:300px}}@media (max-width: 480px){.dashboard{padding:0 5px}.table-container{margin:16px 0;border-radius:8px}.page-title{font-size:1.5rem}}.dashboard-modal-overlay{position:fixed;inset:0;background:#0000002e;z-index:2000;display:flex;justify-content:center;align-items:center}.modal-slidein{background:#fff;width:340px;max-width:90vw;height:100vh;box-shadow:-2px 0 16px #0000001a;animation:slideInRight .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px 8px;font-size:1.1rem;font-weight:600;border-bottom:1px solid #f0f0f0}.modal-content{padding:18px 24px;flex:1;overflow-y:auto}.modal-content .filter-group,.modal-content .column-checkboxes{margin-bottom:18px}.modal-content label{font-size:.98rem;font-weight:500;color:#374151;margin-bottom:6px;display:block}.modal-content select,.modal-content input[type=checkbox]{margin-bottom:10px}.modal-content .clear-filters,.modal-content .show-all-columns,.modal-content .hide-all-columns{background:#f3f4f6;color:#222;border:1px solid #e5e7eb;border-radius:8px;padding:7px 16px;font-size:.98rem;font-weight:500;margin-right:8px;cursor:pointer;transition:background .2s}.modal-content .clear-filters:hover,.modal-content .show-all-columns:hover,.modal-content .hide-all-columns:hover{background:#e5e7eb}.dark-bg{background:#181c23!important;color:#f3f4f6!important}.admin-page{min-height:100vh;background-color:#f8fafc;color:#1f2937;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.admin-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0;box-shadow:0 1px 3px #0000001a}.admin-header-content{max-width:1200px;margin:0 auto;padding:0 1rem;display:flex;justify-content:space-between;align-items:center}.admin-header h1{margin:0;color:#1f2937;font-size:1.875rem;font-weight:700}.admin-nav{display:flex;align-items:center;gap:1rem}.user-info{display:flex;align-items:center;gap:.75rem;font-size:.875rem;color:#6b7280}.admin-content{max-width:1200px;margin:0 auto;padding:2rem 1rem}.stats-section{margin-bottom:3rem}.stats-section h2{margin:0 0 1.5rem;color:#1f2937;font-size:1.5rem;font-weight:600}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.25rem}.stat-card{background:#fff;padding:1.5rem;border-radius:.75rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.stat-card h3{margin:0 0 .5rem;color:#6b7280;font-size:.875rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.stat-value{font-size:2rem;font-weight:700;color:#1f2937;margin:0}.contacts-section{background:#fff;padding:1.5rem;border-radius:.75rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb}.contacts-section h2{margin:0 0 1.25rem;color:#1f2937;font-size:1.5rem;font-weight:600}.no-contacts{text-align:center;padding:2rem;color:#6b7280}.contacts-list{display:flex;flex-direction:column;gap:.75rem}.contact-item{padding:1rem;border:1px solid #e5e7eb;border-radius:.5rem;background-color:#f9fafb;transition:background-color .2s;width:100%;box-sizing:border-box;overflow:hidden}.contact-item:hover{background-color:#f3f4f6}.contact-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;width:100%;min-width:0}.contact-info{display:flex;flex-direction:column;gap:.25rem;min-width:0;flex:1}.contact-name{font-weight:600;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-email{color:#6366f1;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-date{color:#6b7280;font-size:.75rem;white-space:nowrap;flex-shrink:0}.contact-message{color:#374151;line-height:1.5;margin-top:.5rem;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;overflow-wrap:break-word;max-width:100%;overflow:hidden}.btn-primary{background-color:#6366f1;color:#fff;border:none;padding:.5rem 1rem;border-radius:.375rem;font-weight:500;cursor:pointer;transition:background-color .2s}.btn-primary:hover{background-color:#5855eb}.btn-secondary{background-color:transparent;color:#6366f1;border:1px solid #6366f1;padding:.5rem 1rem;border-radius:.375rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-secondary:hover{background-color:#6366f1;color:#fff}.btn-logout{background-color:#ef4444;color:#fff;border:none;padding:.375rem .75rem;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:background-color .2s}.btn-logout:hover{background-color:#dc2626}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:1rem}.loading-spinner{width:2rem;height:2rem;border:3px solid #e5e7eb;border-top:3px solid #6366f1;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:1rem;text-align:center}.error-container h2{color:#dc2626;margin:0}.error-container p{color:#6b7280;margin:0}@media (max-width: 768px){.admin-header-content{flex-direction:column;gap:1rem;align-items:flex-start}.admin-nav{width:100%;justify-content:space-between}.stats-grid{grid-template-columns:1fr}.contact-header{flex-direction:column;align-items:flex-start;gap:.5rem}.admin-content{padding:1rem}}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}
