.landing-page{min-height:100vh}.landing-header{color:#fff;background-color:#241069;justify-content:space-between;align-items:center;padding:20px;display:flex}.landing-logo{font-size:48px;font-weight:700}.landing-buttons{gap:15px;display:flex}.landing-buttons button{color:#241069;cursor:pointer;background-color:#fff;border:none;border-radius:8px;padding:10px 18px;font-weight:700}.hero-section{text-align:center;padding:80px 20px}.hero-section h1{color:#241069;margin-bottom:20px;font-size:48px}.hero-section p{color:#555;max-width:700px;margin:0 auto 30px;font-size:18px;line-height:1.6}.main-cta{color:#fff;cursor:pointer;background-color:#241069;border:none;border-radius:10px;padding:15px 30px;font-size:18px;font-weight:700}.features-section{width:80%;max-width:1200px;margin:0 auto 60px}.features-section h2{text-align:center;color:#241069;margin-bottom:30px}.feature-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;display:grid}.feature-card{background-color:#fff;border-radius:15px;padding:25px;box-shadow:0 4px 12px #00000014}.feature-card h3{color:#241069;margin-top:0}.feature-card p{color:#555;line-height:1.5}.dashboard{width:80%;max-width:1000px;margin:30px auto}.user-card,.quick-actions,.recommendations,.recent-activity{background-color:#fff;border-radius:12px;margin-bottom:20px;padding:20px}.user-card h2,.quick-actions h2,.recommendations h2,.recent-activity h2{color:#241069;margin-top:0}.action-grid{flex-wrap:wrap;gap:20px;display:flex}.action-card{color:#fff;cursor:pointer;background-color:#241069;border:none;border-radius:10px;flex:1;min-width:200px;padding:25px;font-size:18px;font-weight:700}.action-card:hover{opacity:.9}.recommendations ul,.recent-activity ul{padding-left:20px}.recommendations li,.recent-activity li{margin-bottom:10px}.link-btn{font:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;padding:0;text-decoration:underline}.link-btn:hover{color:#cf231a}.user-card{justify-content:space-between;align-items:center;display:flex}.user-info{flex:1}.user-card-portrait{object-fit:cover;border-radius:50%;width:160px;height:160px;margin-right:55px}.signup-layout{justify-content:center;align-items:flex-start;gap:40px;margin-top:50px;display:flex}.link-button{color:#241069;cursor:pointer;background:0 0;border:none;width:fit-content;margin:0 0 15px 20px;padding:0;text-decoration:underline;display:block}.welcome-container{background-color:#d3d0d0;border-radius:10px;width:300px;margin:0;overflow:hidden;box-shadow:0 0 10px #0000001a}.welcome-container h2{text-align:center;color:#fff;background-color:#241069;margin:0;padding:15px}.welcome-container p{margin:0;padding:20px;line-height:1.6}:root{--bg-1:#0f172a;--bg-2:#111827;--card:#111827c7;--text:#f8fafc;--muted:#cbd5e1;--accent:#7c3aed;--accent-2:#a78bfa;--success:#22c55e;--danger:#ef4444;--border:#94a3b838}*{box-sizing:border-box}.paywall-container{background:radial-gradient(1200px 700px at 0% 0%, #312e81 0%, transparent 55%), radial-gradient(900px 500px at 100% 100%, #1d4ed8 0%, transparent 50%), linear-gradient(145deg, var(--bg-1), var(--bg-2));place-items:center;min-height:100vh;padding:2rem 1rem;display:grid}.paywall-card{border:1px solid var(--border);background:var(--card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);width:min(720px,100%);color:var(--text);border-radius:20px;padding:2rem;position:relative;overflow:hidden;box-shadow:0 16px 40px #00000059}.paywall-glow{pointer-events:none;background:radial-gradient(circle,#7c3aed73 0%,#0000 65%);border-radius:999px;width:280px;height:280px;position:absolute;top:-120px;right:-100px}.paywall-header{margin-bottom:1.4rem}.paywall-badge{color:#ddd6fe;background:#7c3aed33;border:1px solid #a78bfa59;border-radius:999px;margin-bottom:.9rem;padding:.35rem .7rem;font-size:.8rem;font-weight:600;display:inline-block}.paywall-title{margin:0;font-size:clamp(1.8rem,3.8vw,2.4rem);line-height:1.2}.paywall-subtitle{color:var(--muted);margin-top:.6rem;font-size:1rem;line-height:1.55}.paywall-features{gap:.9rem;margin:1.25rem 0 1.4rem;display:grid}.feature-item{background:#0f172a6b;border:1px solid #94a3b826;border-radius:12px;grid-template-columns:32px 1fr;align-items:start;gap:.75rem;padding:.8rem;display:grid}.feature-icon{color:#dcfce7;background:#22c55e33;border-radius:999px;place-items:center;width:28px;height:28px;display:grid}.feature-title{margin:0;font-size:1rem;font-weight:650}.feature-desc{color:var(--muted);margin:.2rem 0 0;font-size:.94rem;line-height:1.45}.price-box{text-align:center;background:#4c1d9524;border:1px solid #a78bfa40;border-radius:14px;margin:1.2rem 0;padding:1rem}.price-display{justify-content:center;align-items:baseline;gap:.35rem;display:flex}.price-amount{letter-spacing:-.02em;font-size:2.2rem;font-weight:800}.price-period{color:var(--muted);font-size:1rem}.price-note{color:var(--muted);margin:.45rem 0 0;font-size:.9rem}.paywall-error{color:#fee2e2;background:#7f1d1d59;border:1px solid #ef444466;border-radius:10px;margin-bottom:.9rem;padding:.75rem .9rem;font-size:.9rem}.paywall-btn{color:#fff;cursor:pointer;background:linear-gradient(90deg, var(--accent), var(--accent-2));border:0;border-radius:12px;width:100%;padding:.9rem 1rem;font-size:1rem;font-weight:700;transition:transform .15s,box-shadow .15s,opacity .15s}.paywall-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px #7c3aed59}.paywall-btn:disabled{opacity:.75;cursor:not-allowed}.paywall-footer-text{color:var(--muted);justify-content:center;align-items:center;gap:.4rem;margin-top:.9rem;font-size:.84rem;display:flex}.paywall-footer-text svg{flex:0 0 12px;width:12px;height:12px}@media (width<=640px){.paywall-card{border-radius:16px;padding:1.2rem}.feature-item{grid-template-columns:28px 1fr;padding:.7rem}}.gallery-page{width:80%;margin:40px auto}.gallery-page h1{text-align:center}.search-section{gap:10px;margin-bottom:25px;display:flex}.search-section input{flex:1;padding:12px;font-size:16px}.search-section button{cursor:pointer;padding:12px 20px}.file-gallery{border:1px solid #ccc;grid-template-columns:50% 50%;gap:20px;height:400px;padding:20px;display:grid;overflow:scroll}.file-card{background-color:#fff;border:1px solid #ddd;border-radius:10px;justify-content:space-between;align-items:stretch;gap:20px;padding:20px;display:flex}.file-info{flex:1}.file-card h3{margin-bottom:5px}.file-card p{color:#666}.file-details{flex-direction:column;width:220px;margin-top:25px;display:flex}.tags{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.description{color:#555;font-size:13px;line-height:1.4}.description.ai-pending,.ai-pending-label{color:#888;font-style:italic}.ai-pending-label{font-size:12px}.ai-error,.ai-error-label{color:#b42318;margin:0;font-size:13px}.vote-buttons{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;margin-top:auto;display:flex}.solved-status{margin-top:8px}.solved-tag{border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-block}.solved-tag.solved-yes{color:#065f46;background-color:#d1fae5}.solved-tag.solved-no{color:#991b1b;background-color:#fee2e2}.solve-btn{color:#fff;cursor:pointer;background-color:#241069;border:none;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:700}.solve-btn:disabled{opacity:.7;cursor:not-allowed}.solve-btn:hover:not(:disabled){background-color:#605b72}.vote-btn{color:#fff;cursor:pointer;border:none;border-radius:50%;width:40px;height:40px;font-size:20px;font-weight:700}.vote-btn-up{background:#259314}.vote-btn-down{background:#bd2d2d}.vote-btn:hover{background:#605b72}.post-btn{color:#fff;cursor:pointer;background:#118e36;border:none;border-radius:50%;width:70px;height:70px;font-size:40px;position:fixed;bottom:30px;right:30px}.post-btn:hover{background:#2563eb}.title-btn{color:#241069;cursor:pointer;background:0 0;border:none;font-size:18px;font-weight:700;text-decoration:underline}.profile-avatar{border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;padding:0;display:flex;overflow:hidden}.profile-avatar-image{object-fit:cover;width:100%;height:100%}.delete-button{color:#fff;cursor:pointer;background:red;border:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-left:auto;padding:0;font-size:14px;display:flex}.delete-button:hover{background:#8b0000}.form-container{background-color:#d3d0d0;border-radius:10px;width:900px;margin:20px auto;padding:0;overflow:hidden;box-shadow:0 0 10px #0000001a}.form-container input{box-sizing:border-box;border-radius:8px;width:90%;margin-bottom:12px;padding:8px;display:block}.portrait-section{flex-direction:column;align-items:center;margin-bottom:24px;display:flex}.portrait-preview{cursor:pointer;background:#ddd;border-radius:50%;justify-content:center;align-items:center;width:110px;height:110px;font-size:40px;font-weight:700;transition:opacity .2s;display:flex;overflow:hidden}.portrait-preview:hover{opacity:.8}.portrait-preview img{object-fit:cover;width:100%;height:100%}.portrait-text{color:#666;margin-top:8px;font-size:14px}.detail-page{gap:30px;width:90%;margin:40px auto;display:flex}.file-preview{background-color:#fff;border:1px solid #ddd;border-radius:12px;flex:2;padding:25px}.fake-file{background-color:#fafafa;border:2px dashed #aaa;border-radius:10px;min-height:550px;padding:35px;font-size:18px;line-height:1.6}.download-btn{color:#fff;background-color:#241069;border:none;border-radius:8px;margin-top:20px;padding:12px 20px;font-weight:700}.side-panel{flex-direction:column;flex:1;gap:18px;display:flex}.info-card,.comments-section{background-color:#fff;border:1px solid #ddd;border-radius:12px;padding:18px}.tags{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.tag{color:#241069;background-color:#ece9ff;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700}.ai-pending{color:#888;font-style:italic}.ai-error-block{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.rating-row{gap:12px;display:flex}.rate-btn{color:#fff;cursor:pointer;border:none;border-radius:20px;padding:8px 14px;font-weight:700}.rate-btn.up{background-color:#259314}.rate-btn.down{background-color:#bd2d2d}.practice-btn,.cheat-btn{color:#fff;cursor:pointer;background-color:#241069;border:none;border-radius:8px;width:100%;margin-top:10px;padding:10px;font-weight:700}.premium-card{border:2px solid #f0c84b}.comment-card{background-color:#fbfbff;border:1px solid #ddd;border-radius:10px;margin-top:12px;padding:12px}.comment-header{justify-content:space-between;font-size:14px;display:flex}.comment-header span{color:#777;font-size:12px}.comment-actions{justify-content:flex-end;gap:8px;display:flex}.comment-actions button{color:#241069;background-color:#ece9ff;border:none;border-radius:20px;padding:6px 12px;font-weight:700}.real-file-preview{width:100%;margin-top:20px;margin-bottom:20px}.uploaded-file-frame{background-color:#fff;border:1px solid #d6d6e8;border-radius:10px;width:100%;height:700px}.uploaded-image{object-fit:contain;background-color:#fff;border:1px solid #d6d6e8;border-radius:10px;width:100%;max-height:700px;display:block}.unsupported-preview{text-align:center;background-color:#fff;border:1px solid #d6d6e8;border-radius:10px;padding:30px}.comment-form{flex-direction:column;gap:10px;margin-bottom:20px;display:flex}.comment-form textarea{box-sizing:border-box;resize:vertical;border:1px solid #d6d6e8;border-radius:8px;width:100%;min-height:100px;padding:12px;font-family:Arial,sans-serif;font-size:15px}.comment-form button{cursor:pointer;border:none;border-radius:8px;align-self:flex-end;padding:9px 18px;font-weight:700}.comment-form button:disabled{cursor:not-allowed;opacity:.6}.page h1{color:#241069;margin-bottom:8px}.page-subtitle{color:#555;margin-top:0;margin-bottom:24px}.cheatsheet-controls{background:#fff;border-radius:12px;margin-bottom:24px;padding:20px}.course-select-label{color:#241069;margin-bottom:8px;font-weight:700;display:block}.course-select{border:1px solid #ccc;border-radius:8px;width:100%;max-width:480px;margin-bottom:16px;padding:10px 12px;font-size:16px}.cheatsheet-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.generate-btn,.download-btn,.retry-btn{cursor:pointer;border:none;border-radius:10px;padding:12px 22px;font-size:15px;font-weight:700;transition:all .2s}.generate-btn{color:#fff;background-color:#241069}.generate-btn:hover:not(:disabled){background-color:#37228c}.generate-btn:disabled{opacity:.6;cursor:not-allowed}.download-btn{color:#fff;background-color:#cf231a}.download-btn:hover{opacity:.9}.retry-btn{color:#241069;background-color:#fff;border:2px solid #241069}.retry-btn:hover:not(:disabled){background-color:#eee}.retry-btn:disabled{opacity:.6;cursor:not-allowed}.source-notes{background:#fff;border-radius:12px;margin-bottom:24px;padding:20px}.source-notes h2{color:#241069;margin-top:0;font-size:20px}.source-notes ul{margin-bottom:0;padding-left:20px}.source-notes li{margin-bottom:8px;line-height:1.5}.cheatsheet-status{color:#444;font-size:16px}.cheatsheet-error{background:#fff0f0;border:1px solid #f5c2c2;border-radius:10px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;padding:16px;display:flex}.cheatsheet-error p{color:#a11;margin:0}.sheet{background:#fff;border-radius:10px;padding:40px;line-height:1.6}.sheet h2{color:#241069;margin-top:0}.sheet-section{margin-top:18px}.sheet-section h3{color:#241069;margin-bottom:8px}.sheet-section ul{margin-top:0}pre{background:#eee;border-radius:10px;padding:20px;font-size:18px}body{background:#f4f6fb;margin:0;font-family:Arial}.page{width:70%;margin:40px auto}.solved-tag{color:#fff;background-color:#a33;border-radius:20px;padding:6px 12px;font-size:13px;font-weight:700}.solved-tag.is-solved{background-color:#2d7a3e}.page-message{width:70%;margin:40px auto;font-family:Arial,sans-serif}.file-title{color:#555;margin-top:-10px}.knowledge-point{color:#241069;font-weight:700}.question-type{color:#666;text-transform:capitalize;font-size:14px}.temp-dev-answer{background:#fff8f8;border:2px dashed #c77;border-radius:8px;margin-top:20px;padding:15px}.temp-dev-answer h3{color:#a33;margin-top:0}.difficulty{gap:12px;margin:25px 0;display:flex}.difficulty button{color:#241069;cursor:pointer;background:#fff;border:2px solid #241069;border-radius:8px;padding:10px 22px;font-weight:700;transition:all .2s}.difficulty button:hover{background:#ece9ff}.difficulty .selected,.difficulty button:hover{color:#fff;cursor:pointer;background:#241069;border:none;border-radius:8px;padding:10px 22px;font-weight:700}.question,.ai-feedback{background:#fff;border-radius:10px;margin-bottom:30px;padding:25px}.textarea{box-sizing:border-box;border:2px solid #d6d6e8;border-radius:10px;width:100%;height:180px;padding:15px;font-family:Arial,sans-serif;font-size:16px}.submit-btn{color:#fff;cursor:pointer;background:#241069;border:none;border-radius:8px;margin-top:15px;padding:10px 20px;font-weight:700}.submit-btn:disabled{opacity:.6;cursor:not-allowed}.grading-status{color:#666;font-style:italic}.grade-score{color:#241069;font-weight:700}.ai-unavailable-block{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:16px;display:flex}.ai-error{color:#b42318;margin:0}.ai-retry-btn{color:#b42318;cursor:pointer;background:#fff;border:1px solid #b42318;border-radius:16px;padding:6px 14px;font-size:13px;font-weight:600}.ai-retry-btn:disabled{opacity:.6;cursor:not-allowed}.revealed-answer{border-top:1px solid #e5e5ef;margin-top:16px;padding-top:16px}.submit-btn:hover{background:#342087}.score{color:#ae1f1f;font-weight:700}body{background-color:#f4f6fb;margin:0;font-family:Arial,sans-serif}.error-message{color:red;text-align:left;margin-top:10px}.form-container{background-color:#d3d0d0;border-radius:10px;width:900px;margin:20px auto;padding:0;overflow:hidden}.form-container h2{text-align:center;color:#fff;background-color:#241069;margin:0;padding:15px}.form-container form{padding:20px}.form-container form div{margin-bottom:12px}.form-container label{margin-bottom:6px;font-weight:500;display:block}.form-container input,.form-container select,.form-container textarea{box-sizing:border-box;border:1px solid #bbb;border-radius:8px;width:100%;padding:8px;font-size:15px;display:block}.form-container textarea{height:100px}.loginbutton{color:#fff;cursor:pointer;background-color:#241069;border:none;border-radius:8px;width:20%;margin:auto;padding:10px 18px;font-weight:700;display:block}.loginbutton:hover{background:#605b72}.topbar{color:#fff;background-color:#241069;justify-content:space-between;align-items:center;padding:20px;display:flex}.topbar-left{align-items:center;gap:16px;display:flex}.logo{color:#fff;cursor:pointer;background:0 0;border:none;padding:0;font-size:48px;font-weight:700}.back-btn{color:#fff;cursor:pointer;background:0 0;border:1px solid #ffffff4d;border-radius:6px;padding:6px 14px;font-size:14px}.back-btn:hover{background:#ffffff1a}.logout-btn{color:#fff;cursor:pointer;background-color:#ffffff26;border:none;border-radius:6px;padding:6px 16px;font-size:14px}.logout-btn:hover{background-color:#ffffff40}.header-buttons{align-items:center;gap:12px;display:flex}.profile-avatar{color:#241069;cursor:pointer;background-color:#fff;border:none;border-radius:50%;width:36px;height:36px;font-size:16px;font-weight:700}.profile-avatar-image{object-fit:cover;border-radius:50%;width:100%;height:100%}
