:root{--bg: #f8fafc;--surface: #ffffff;--border: #e2e8f0;--border-strong: #cbd5e1;--text: #0f172a;--text-muted: #64748b;--primary: #0f172a;--primary-hover: #1e293b;--accent: #2563eb;--accent-hover: #1d4ed8;--primary-soft: #f1f5f9;--success: #16a34a;--success-bg: #f0fdf4;--success-border: #bbf7d0;--radius: 8px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}#root{display:flex;flex-direction:column;min-height:100vh}header.app-header{background:var(--surface);border-bottom:1px solid var(--border);padding:.75rem 2rem;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:100;gap:1.5rem}.header-brand-nav{display:flex;align-items:center;gap:2rem;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:.75rem;font-weight:700;font-size:1.05rem;letter-spacing:-.01em;cursor:pointer;-webkit-user-select:none;user-select:none}.brand-badge{font-size:.7rem;font-weight:600;background:#f1f5f9;color:#475569;padding:.2rem .5rem;border-radius:4px;border:1px solid var(--border)}.header-nav{display:flex;align-items:center;gap:.4rem}.nav-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem .85rem;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--text-muted);font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s ease}.nav-btn:hover{background:#f1f5f9;color:var(--text)}.nav-btn.active{background:#f1f5f9;border-color:var(--border);color:var(--text)}.nav-btn-admin{color:#b45309}.nav-btn-admin:hover{background:#fef3c7;color:#92400e}.nav-btn-admin.active{background:#fef3c7;border-color:#fde68a;color:#92400e}.nav-badge{background:#ef4444;color:#fff;font-size:.68rem;font-weight:700;padding:1px 6px;border-radius:999px;line-height:1.2}.header-user-actions{display:flex;align-items:center;gap:1rem}.user-pill{font-size:.85rem;color:var(--text-muted);display:flex;align-items:center;gap:.5rem;min-width:0}.user-email-text{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle}.badge-admin{background:#0f172a;color:#fff;font-size:.68rem;font-weight:700;padding:2px 6px;border-radius:4px;white-space:nowrap}.btn-logout{background:transparent;border:1px solid var(--border);color:var(--text-muted);padding:.35rem .75rem;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .15s ease}.btn-logout:hover{background:#f1f5f9;color:var(--text)}.upload-header-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}main.app-main{max-width:1000px;width:100%;margin:2rem auto;padding:0 1.5rem;flex:1}.tab-bar{display:flex;background:#f1f5f9;padding:4px;border-radius:10px;border:1px solid var(--border);margin-bottom:1.75rem;width:fit-content}.tab-btn{display:flex;align-items:center;gap:.5rem;border:none;background:transparent;padding:.6rem 1.25rem;font-size:.88rem;font-weight:600;color:var(--text-muted);border-radius:6px;cursor:pointer;transition:all .15s ease}.tab-btn.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000000f}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem;box-shadow:0 1px 3px #00000005}.card-header{margin-bottom:1.5rem}.card-header h2{font-size:1.25rem;font-weight:700;letter-spacing:-.01em;margin-bottom:.25rem}.card-header p{font-size:.9rem;color:var(--text-muted);line-height:1.45}.dropzone{border:2px dashed var(--border-strong);border-radius:var(--radius);padding:3rem 2rem;text-align:center;background:#fafafa;cursor:pointer;transition:border-color .2s ease,background .2s ease}.dropzone:hover,.dropzone.dragover{border-color:var(--accent);background:#eff6ff}.drop-icon{width:44px;height:44px;stroke:var(--text-muted);margin-bottom:.75rem}.drop-title{font-weight:600;font-size:1rem;margin-bottom:.25rem}.drop-subtitle{font-size:.85rem;color:var(--text-muted)}.file-queue{margin-top:1.5rem;display:flex;flex-direction:column;gap:1rem}.file-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;border:1px solid var(--border);border-radius:var(--radius);background:#fafafa}.file-info{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;margin-bottom:.35rem}.progress-bar{width:100%;height:6px;background:var(--border);border-radius:99px;overflow:hidden;margin-top:.5rem}.progress-fill{height:100%;background:var(--accent);transition:width .2s ease}.result-box{margin-top:1.5rem;padding:1.25rem;background:var(--success-bg);border:1px solid var(--success-border);border-radius:var(--radius)}.result-title{color:#166534;font-size:.9rem;font-weight:600;margin-bottom:.5rem;display:flex;align-items:center;gap:.5rem}.link-copy-row{display:flex;gap:.5rem}.link-input{flex:1;padding:.6rem .75rem;font-size:.85rem;border:1px solid #86efac;border-radius:6px;background:#fff;color:#1e293b;font-family:ui-monospace,SFMono-Regular,monospace}.btn-action{background:var(--primary);color:#fff;border:none;padding:.6rem 1.25rem;border-radius:6px;font-weight:600;font-size:.85rem;cursor:pointer;display:flex;align-items:center;gap:.4rem;transition:background .15s ease}.btn-action:hover{background:var(--primary-hover)}.options-row{display:flex;align-items:center;justify-content:space-between;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border);font-size:.85rem;color:var(--text-muted)}.select-input{padding:.4rem .6rem;border:1px solid var(--border);border-radius:6px;font-size:.85rem;background:#fff}.preview-card{background:#f8fafc;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem;min-height:120px}.preview-card img{max-width:100%;max-height:220px;object-fit:contain;border-radius:4px;box-shadow:0 2px 6px #00000014}.postimg-container{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;flex-direction:column;gap:.85rem}.postimg-row{display:grid;grid-template-columns:220px 1fr;align-items:center;gap:1rem;padding-bottom:.85rem;border-bottom:1px solid #f1f5f9}.postimg-row:last-child{padding-bottom:0;border-bottom:none}@media(max-width:720px){.postimg-row{grid-template-columns:1fr;gap:.35rem}}.postimg-label{font-size:.85rem;font-weight:600;color:#334155;display:flex;align-items:center;gap:.4rem}.postimg-label .badge-rec{font-size:.68rem;background:#dbeafe;color:#1d4ed8;padding:2px 6px;border-radius:4px;font-weight:700}.postimg-input-group{display:flex;align-items:center;position:relative}.postimg-input{flex:1;padding:.55rem .75rem;font-size:.83rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;background:#f8fafc;border:1px solid var(--border);border-radius:6px 0 0 6px;color:#1e293b;outline:none}.postimg-input:focus{background:#fff;border-color:var(--accent)}.btn-copy-code{background:#f1f5f9;border:1px solid var(--border);border-left:none;padding:.55rem 1rem;border-radius:0 6px 6px 0;font-size:.82rem;font-weight:600;color:#334155;cursor:pointer;display:flex;align-items:center;gap:.35rem;transition:all .15s ease;white-space:nowrap}.btn-copy-code:hover{background:#e2e8f0;color:var(--text)}.btn-copy-code.copied{background:#16a34a;color:#fff;border-color:#16a34a}.toast{position:fixed;bottom:20px;right:20px;background:#0f172a;color:#fff;padding:.75rem 1.25rem;border-radius:6px;font-size:.85rem;box-shadow:0 4px 12px #00000026;z-index:1000;display:flex;align-items:center;gap:.5rem;animation:slideUp .2s ease-out}@keyframes slideUp{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.recipient-wrapper{max-width:680px;margin:3rem auto;padding:0 1.5rem;width:100%}.video-container{background:#000;border-radius:8px;overflow:hidden;margin:1.5rem 0}.video-container video{width:100%;display:block;max-height:450px}.gallery-toggle-bar{display:flex;background:#f1f5f9;padding:3px;border-radius:8px;margin-bottom:1.5rem;width:fit-content;gap:2px}.gallery-toggle-btn{padding:.5rem 1rem;border:none;background:transparent;color:var(--text-muted);font-weight:600;font-size:.85rem;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:.4rem;transition:all .15s ease;white-space:nowrap}.gallery-toggle-btn.active{background:#fff;color:var(--text);box-shadow:0 1px 2px #0000000f}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{width:100%;border-collapse:collapse;font-size:.85rem;min-width:540px}.data-table th,.data-table td{padding:.75rem 1rem;border-bottom:1px solid var(--border)}.data-table th{background:#f8fafc;font-weight:600;color:#334155;white-space:nowrap}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a99;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000}.modal-content{background:#fff;border-radius:12px;max-width:650px;width:100%;max-height:90vh;overflow-y:auto;padding:1.75rem;box-shadow:0 20px 25px -5px #0003}.modal-input-row{display:flex;gap:.5rem}.admin-stats-bar{display:flex;gap:1rem;margin-bottom:1.5rem;padding:.75rem 1rem;background:#f8fafc;border-radius:8px;border:1px solid var(--border);font-size:.85rem;flex-wrap:wrap}.auth-card{max-width:440px;margin:3.5rem auto;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2.25rem;box-shadow:0 4px 20px #0000000d}@media(max-width:768px){header.app-header{padding:.75rem 1rem;flex-direction:column;align-items:stretch;gap:.75rem}.header-brand-nav{flex-direction:column;align-items:flex-start;gap:.75rem;width:100%}.header-nav{width:100%;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.header-nav::-webkit-scrollbar{display:none}.nav-btn{white-space:nowrap;flex-shrink:0;font-size:.82rem;padding:.45rem .75rem}.header-user-actions{justify-content:space-between;border-top:1px solid var(--border);padding-top:.5rem}.upload-header-bar{flex-direction:column;align-items:stretch;gap:.85rem}input[type=text],input[type=email],input[type=password],select{font-size:16px!important}}@media(max-width:640px){main.app-main{margin:1rem auto;padding:0 .85rem}.card{padding:1.25rem 1rem;border-radius:10px}.card-header h2{font-size:1.15rem}.card-header p{font-size:.82rem}.tab-bar{width:100%;display:flex}.tab-btn{flex:1;justify-content:center;padding:.55rem .4rem;font-size:.78rem;text-align:center;gap:.35rem}.dropzone{padding:1.75rem 1rem}.drop-icon{width:36px;height:36px;margin-bottom:.5rem}.drop-title{font-size:.92rem}.drop-subtitle{font-size:.78rem}.options-row{flex-direction:column;align-items:flex-start;gap:.6rem}.gallery-toggle-bar{width:100%;flex-direction:column}.gallery-toggle-btn{width:100%;justify-content:center;font-size:.8rem;padding:.55rem}.data-table th,.data-table td{padding:.55rem .65rem;font-size:.78rem}.modal-content{padding:1.25rem 1rem;border-radius:10px}}@media(max-width:480px){.user-email-text{max-width:120px}.link-copy-row{flex-direction:column;gap:.5rem}.link-copy-row .btn-action{width:100%;justify-content:center}.modal-input-row{flex-direction:column}.modal-input-row .btn-action{width:100%;justify-content:center}.gallery-grid{grid-template-columns:1fr;gap:.85rem}.auth-card{margin:1.25rem auto;padding:1.25rem 1rem;border-radius:10px}.recipient-wrapper{margin:1.25rem auto;padding:0 .85rem}.admin-stats-bar{flex-direction:column;gap:.35rem;font-size:.8rem}}
