:root{--bg-color: #0f1115;--panel-bg: rgba(255, 255, 255, .03);--panel-border: rgba(255, 255, 255, .08);--primary: #3b82f6;--primary-glow: rgba(59, 130, 246, .4);--accent: #10b981;--accent-glow: rgba(16, 185, 129, .4);--danger: #ef4444;--danger-glow: rgba(239, 68, 68, .4);--text-main: #f8fafc;--text-muted: #94a3b8;--radius-lg: 16px;--radius-md: 12px;--radius-sm: 8px;--transition: all .3s cubic-bezier(.4, 0, .2, 1)}*{margin:0;padding:0;box-sizing:border-box}*{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#ffffff38;border-radius:9999px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background:#ffffff59;background-clip:padding-box}*::-webkit-scrollbar-thumb:active{background:#ffffff73;background-clip:padding-box}*::-webkit-scrollbar-corner{background:transparent}body{font-family:Inter,Noto Sans JP,sans-serif;background-color:var(--bg-color);color:var(--text-main);line-height:1.5;min-height:100vh;background-image:radial-gradient(circle at 15% 50%,rgba(59,130,246,.08) 0%,transparent 50%),radial-gradient(circle at 85% 30%,rgba(16,185,129,.05) 0%,transparent 50%);background-attachment:fixed}h1,h2,h3,h4,h5,h6{font-weight:600;letter-spacing:-.02em}a{color:inherit;text-decoration:none}button{cursor:pointer;border:none;background:none;font-family:inherit;font-size:1rem}input,textarea,select{font-family:inherit;outline:none}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;appearance:textfield}select{background:#0000004d;color:var(--text-main);color-scheme:dark}select option{background:var(--bg-color);color:var(--text-main)}select{background-color:#1e293bf2;color:var(--text-main)}select option,select{background-color:#1e293b;color:var(--text-main)}.glass-panel{background:var(--panel-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--panel-border);border-radius:var(--radius-lg);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:1.5rem;transition:var(--transition)}.glass-panel:hover{border-color:#ffffff26;box-shadow:0 10px 15px -3px #0003}.text-gradient{background:linear-gradient(135deg,var(--text-main),#94a3b8);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.text-primary-gradient{background:linear-gradient(135deg,#60a5fa,#3b82f6);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.25rem;border-radius:var(--radius-md);font-weight:500;transition:var(--transition);position:relative;overflow:hidden}.btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 4px 12px var(--primary-glow)}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 16px var(--primary-glow);filter:brightness(1.1)}.btn-primary:active{transform:translateY(0)}.btn-accent{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 4px 12px var(--accent-glow)}.btn-accent:hover{transform:translateY(-2px);box-shadow:0 6px 16px var(--accent-glow);filter:brightness(1.1)}.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 4px 12px var(--danger-glow)}.btn-danger:hover{transform:translateY(-2px);box-shadow:0 6px 16px var(--danger-glow);filter:brightness(1.1)}.btn-outline{border:1px solid var(--panel-border);color:var(--text-main);background:#ffffff05}.btn-outline:hover{background:#ffffff0d;border-color:#ffffff26}.input-glass{width:100%;background:#0003;border:1px solid var(--panel-border);border-radius:var(--radius-md);padding:.75rem 1rem;color:var(--text-main);transition:var(--transition)}.input-glass:focus{border-color:var(--primary);box-shadow:0 0 0 2px #3b82f633;background:#0006}.input-glass::placeholder{color:var(--text-muted)}.app-container{display:flex;min-height:100vh}.sidebar{width:320px;background:#0f1115b3;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-right:1px solid var(--panel-border);display:flex;flex-direction:column;padding:1.5rem;position:fixed;height:100vh;z-index:40}.main-content{flex:1;margin-left:320px;padding:2rem;max-width:1200px}.mobile-header,.mobile-bottom-nav{display:none}@media(max-width:768px){.app-container{flex-direction:column}.sidebar{display:none}.mobile-header{display:flex;align-items:center;justify-content:space-between;position:fixed;top:0;left:0;right:0;height:44px;padding:0 .75rem;z-index:55;background:#0f1115e6;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--panel-border)}.mobile-header-logo{display:flex;align-items:center;gap:.35rem}.mobile-header-logo-icon{display:inline-flex;align-items:center;justify-content:center;width:1.65rem;height:1.65rem;border-radius:6px;background:var(--panel-bg);border:1px solid var(--panel-border)}.mobile-header-title{font-weight:600;font-size:.95rem}.mobile-header-logout-btn{display:inline-flex;align-items:center;justify-content:center;padding:.35rem;color:var(--text-muted);border-radius:var(--radius-sm);transition:var(--transition)}.mobile-header-logout-btn:hover{color:var(--text-main);background:#ffffff0f}.mobile-header-logout-btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.mobile-bottom-nav{display:flex;align-items:flex-end;justify-content:space-between;position:fixed;bottom:0;left:0;right:0;height:72px;padding:0 1rem calc(env(safe-area-inset-bottom,0) + 8px);z-index:55;background:#0f1115f2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--panel-border)}.mobile-bottom-nav-item{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-muted);text-decoration:none;transition:var(--transition);min-height:48px}.mobile-bottom-nav-item:hover{color:var(--text-main);background:#ffffff08}.mobile-bottom-nav-item-active{color:var(--primary)}.mobile-bottom-nav-center{flex:0 0 auto;width:64px;height:64px;min-height:64px;margin-top:-24px;border-radius:50%;background:linear-gradient(135deg,#3b82f640,#2563eb26);border:2px solid rgba(59,130,246,.4);box-shadow:0 4px 16px #3b82f64d}.mobile-bottom-nav-center.mobile-bottom-nav-item-active{background:linear-gradient(135deg,#3b82f6,#2563eb);border-color:#fff3;box-shadow:0 4px 20px var(--primary-glow);color:#fff}.mobile-bottom-nav-center.mobile-bottom-nav-item-active svg{color:#fff!important}.mobile-bottom-nav-center:hover{background:#ffffff0f;border-color:#ffffff26}.mobile-bottom-nav-center.mobile-bottom-nav-item-active:hover{background:linear-gradient(135deg,#60a5fa,#3b82f6);filter:brightness(1.05)}.main-content{margin-left:0;padding:.75rem;padding-top:52px;padding-bottom:calc(72px + env(safe-area-inset-bottom,0px) + .75rem)}.glass-panel{padding:1rem;border-radius:var(--radius-md)}.page-header{margin-bottom:1rem;gap:.5rem}.glass-table th,.glass-table td{padding:.5rem .6rem;font-size:.8125rem}.glass-table th:first-child,.glass-table td:first-child{white-space:nowrap;min-width:8em}.glass-table th:nth-child(3),.glass-table td:nth-child(3){white-space:nowrap;min-width:7em}.glass-table th:nth-child(4),.glass-table td:nth-child(4){min-width:8em}.glass-table th:last-child,.glass-table td:last-child{white-space:nowrap;min-width:8em}.sales-invoices-table th:last-child,.sales-invoices-table td:last-child{min-width:14em}.glass-table td:last-child>div{flex-wrap:nowrap}.btn{padding:.5rem .75rem;font-size:.875rem}.badge{padding:.2rem .5rem;font-size:.75rem}.input-glass{padding:.5rem .75rem;font-size:.9375rem}}.badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:9999px;font-size:.875rem;font-weight:500;white-space:nowrap}.badge-success{background:#10b98133;color:#34d399;border:1px solid rgba(52,211,153,.2)}.badge-warning{background:#f59e0b33;color:#fbbf24;border:1px solid rgba(251,191,36,.2)}.badge-danger{background:#ef444433;color:#f87171;border:1px solid rgba(248,113,113,.2)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn .4s ease-out forwards}.landing-page{min-height:100vh;display:flex;flex-direction:column}.landing-header{position:sticky;top:0;z-index:50;background:#0f1115d9;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--panel-border)}.landing-header-inner{max-width:1200px;margin:0 auto;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between}.landing-logo{font-size:1.25rem;font-weight:600}.landing-main{flex:1;max-width:1280px;margin:0 auto;padding:2rem 1.5rem 3rem;width:100%;display:grid;grid-template-columns:1fr 380px;gap:3rem;align-items:start}.landing-hero{text-align:center;margin-bottom:3rem;padding:2rem 0}.landing-hero-title{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.3;margin-bottom:1rem;font-weight:700}.landing-hero-subtitle{color:var(--text-muted);font-size:1rem;line-height:1.7;max-width:520px;margin:0 auto}.landing-features{margin-bottom:3rem}.landing-features-title{text-align:center;font-size:1.25rem;margin-bottom:1.5rem;color:var(--text-muted)}.landing-features-grid{display:grid;grid-template-columns:1fr;gap:2rem}.landing-feature-card{background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition)}.landing-feature-card:hover{border-color:#ffffff26;transform:translateY(-4px);box-shadow:0 12px 24px -8px #0006}.landing-feature-image-wrap{aspect-ratio:16 / 9;min-height:500px;overflow:hidden;background:#0003}.landing-feature-image-wrap img{width:100%;height:100%;object-fit:cover;display:block}.landing-feature-image-btn{width:100%;padding:0;border:none;background:none;cursor:pointer;display:block;text-align:left}.landing-feature-image-btn:hover{opacity:.95}.landing-lightbox-overlay{position:fixed;inset:0;z-index:100;background:#000000e6;display:flex;align-items:center;justify-content:center;padding:2rem;cursor:pointer}.landing-lightbox-img{max-width:95vw;max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:var(--radius-md);box-shadow:0 25px 50px -12px #00000080;cursor:default}.landing-lightbox-close{position:absolute;top:1.5rem;right:1.5rem;width:48px;height:48px;border-radius:50%;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--transition)}.landing-lightbox-close:hover{background:#fff3}.landing-feature-text{padding:1.25rem}.landing-feature-text h4{font-size:1rem;margin-bottom:.5rem}.landing-feature-text p{font-size:.875rem;color:var(--text-muted);line-height:1.5}.landing-auth{display:flex;justify-content:center;padding:0;position:sticky;top:calc(1rem + 60px)}.landing-auth-panel{width:100%;max-width:400px}.landing-auth-title{font-size:1.5rem;margin-bottom:.25rem;text-align:center}.landing-auth-subtitle{color:var(--text-muted);font-size:.875rem;text-align:center;margin-bottom:1.5rem}.landing-auth-form{display:flex;flex-direction:column;gap:1.25rem}.landing-auth-label{display:block;margin-bottom:.5rem;font-size:.875rem;color:var(--text-muted)}.landing-auth-submit{width:100%;padding:.875rem}.landing-auth-register{margin-top:1.5rem;text-align:center;font-size:.875rem;color:var(--text-muted)}@media(max-width:1024px){.landing-main{grid-template-columns:1fr}.landing-auth{position:static;margin-bottom:2rem}}@media(min-width:1100px){.landing-features-grid{grid-template-columns:repeat(2,1fr)}}@media(min-width:1400px){.landing-features-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.landing-main{padding:1.5rem 1rem 2rem}.landing-hero{margin-bottom:2rem;padding:1rem 0}.landing-hero-subtitle br{display:none}.landing-features{margin-bottom:2rem}.landing-auth{margin-bottom:1.5rem}}.table-container{width:100%;overflow-x:auto}.glass-table{width:100%;border-collapse:collapse}.glass-table th{text-align:left;padding:1rem;color:var(--text-muted);font-weight:500;border-bottom:1px solid var(--panel-border)}.glass-table td{padding:1rem;border-bottom:1px solid rgba(255,255,255,.03)}.glass-table tr{transition:var(--transition)}.glass-table tr:hover td{background:#ffffff05}.invoice-modal-form{display:flex;flex-direction:column}.invoice-modal-fields{display:flex;flex-direction:column;gap:1rem}.invoice-modal-line-items{margin-top:.5rem}.invoice-modal-line-items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.invoice-modal-line-items-scroll{overflow-x:auto}.invoice-modal-line-items-table{width:100%;min-width:560px;border-collapse:collapse;font-size:.875rem}.invoice-modal-line-items-table thead tr,.invoice-modal-line-items-table tbody tr{border-bottom:1px solid var(--panel-border)}.invoice-modal-line-items-table th{padding:.5rem .4rem;color:var(--text-muted);font-weight:500;text-align:left}.invoice-modal-line-items-table td{padding:.35rem .4rem;vertical-align:middle}.invoice-modal-col-desc{min-width:140px;width:40%}.invoice-modal-col-qty{min-width:56px;width:70px;text-align:right}.invoice-modal-line-items-table .invoice-modal-col-qty input{min-width:0}.invoice-modal-col-unit{min-width:56px;width:64px}.invoice-modal-line-items-table .invoice-modal-col-unit input{min-width:0}.invoice-modal-col-price{min-width:80px;width:90px;text-align:right}.invoice-modal-line-items-table .invoice-modal-col-price input{min-width:0}.invoice-modal-col-amount{min-width:72px;width:88px;text-align:right;font-weight:600;white-space:nowrap}.invoice-modal-col-action{width:44px;min-width:44px;padding-left:.25rem!important;text-align:center}.invoice-modal-row-delete{padding:.35rem!important;min-width:0}.invoice-modal-dates-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}.invoice-modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem;flex-wrap:nowrap}.page-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:2rem}.auth-page{padding:2rem}.modal-overlay,.modal-inner{box-sizing:border-box}@media(max-width:768px){.page-header{flex-direction:column;align-items:stretch}.auth-page{padding:1rem}.dashboard-chart-section{grid-template-columns:1fr!important;gap:.75rem}.dashboard-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:1rem!important}.expenses-top-section{grid-template-columns:1fr!important}.modal-overlay{padding:0!important;align-items:stretch!important}.modal-inner{max-width:100%!important;width:100%!important;height:100%!important;max-height:100vh!important;min-height:100vh!important;border-radius:0!important;margin:0!important}.invoice-modal-dates-row{grid-template-columns:1fr}.invoice-modal-actions{flex-wrap:nowrap;gap:.5rem}}
