*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:linear-gradient(135deg,#f0fdf4,#dcfce7 30%,#bbf7d0 70%,#86efac);background-size:100% 100%;background-attachment:fixed;min-height:100vh;color:#333;padding:10px}.app-container{max-width:600px;margin:20px auto;padding:30px;display:flex;flex-direction:column;background:#fff;border-radius:20px;box-shadow:0 10px 40px #00000026;position:relative;border:10px solid transparent;background-clip:padding-box;max-height:640px;overflow:auto;box-sizing:border-box}.app-container:before{content:"";position:absolute;top:-10px;left:-10px;right:-10px;bottom:-10px;background:linear-gradient(135deg,#16a34a,#4ade80,#86efac,#bbf7d0,#dcfce7);border-radius:25px;z-index:-1}.header{text-align:center;margin-bottom:2rem}.logo h1{font-size:2.5rem;font-weight:700;color:#fff;margin-bottom:.5rem;text-shadow:0 2px 4px rgba(0,0,0,.1)}.subtitle{color:#ffffffe6;font-size:1.1rem;font-weight:400}.main-content{flex:1;display:flex;flex-direction:column;gap:1.5rem;padding:12px 12px 24px}.wallet-section{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 8px 32px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.wallet-connected{display:flex;justify-content:space-between;align-items:center;gap:1rem}.wallet-info{display:flex;flex-direction:column;gap:.5rem}.wallet-status{display:flex;align-items:center;gap:.5rem}.status-dot{width:8px;height:8px;border-radius:50%;background:#10b981}.status-text{font-weight:600;color:#10b981;font-size:.9rem}.wallet-address{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;color:#6b7280;background:#f3f4f6;padding:.25rem .5rem;border-radius:6px}.wallet-disconnected{display:flex;flex-direction:column;align-items:center;gap:1rem;text-align:center}.wallet-prompt{display:flex;align-items:center;gap:.5rem;color:#6b7280;font-size:.95rem}.wallet-icon{font-size:1.2rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:12px;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;position:relative;overflow:hidden}.btn-primary{background:linear-gradient(135deg,#3ccf91,#10b981);color:#fff;box-shadow:0 4px 15px #3ccf9166}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #3ccf9199}.btn-secondary{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb}.btn-secondary:hover:not(:disabled){background:#e5e7eb;transform:translateY(-1px)}.btn-large{padding:1rem 2rem;font-size:1.1rem;width:100%;justify-content:center}.btn:disabled{background:#d1d5db;color:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.btn-icon{font-size:1.1rem}.btn.loading{pointer-events:none}.btn-spinner{width:16px;height:16px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}.loading-spinner{width:20px;height:20px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.status-message{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 16px #0000001a;border-left:4px solid #3b82f6}.status-message.loading{border-left-color:#f59e0b}.status-message.success{border-left-color:#10b981}.status-content{display:flex;align-items:center;gap:.75rem}.status-icon{font-size:1.2rem}.memory-form{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 8px 32px #0000001a}.form-group{margin-bottom:1.5rem}.form-label{display:block;font-weight:600;color:#374151;margin-bottom:.75rem;font-size:1.1rem}.memory-textarea{width:100%;padding:1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;line-height:1.6;resize:vertical;min-height:120px;font-family:inherit;transition:all .2s ease;background:#fafafa}.memory-textarea:focus{outline:none;border-color:#3ccf91;background:#fff;box-shadow:0 0 0 3px #3ccf911a}.memory-textarea:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed}.title-input{width:auto;max-width:400px;display:inline-block;min-height:auto;height:auto;padding:.75rem 1rem}.character-count{text-align:right;font-size:.85rem;color:#6b7280;margin-top:.5rem}.success-section{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 8px 32px #0000001a;border:2px solid #10b981}.success-card{text-align:center}.success-header{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin-bottom:1rem}.success-icon{font-size:3rem;animation:bounce .6s ease}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}.success-header h3{color:#10b981;font-size:1.5rem;font-weight:700}.success-description{color:#6b7280;margin-bottom:1.5rem;line-height:1.6}.transaction-info{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:1rem}.transaction-label{display:block;font-weight:600;color:#0369a1;margin-bottom:.5rem;font-size:.9rem}.transaction-link{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.85rem;color:#0369a1;text-decoration:none;word-break:break-all;display:inline-flex;align-items:center;gap:.25rem;transition:color .2s ease}.transaction-link:hover{color:#0284c7}.external-link{font-size:.8rem;opacity:.7}@media (max-width: 640px){.app-container{padding:1rem}.logo h1{font-size:2rem}.wallet-connected{flex-direction:column;align-items:stretch;gap:1rem}.wallet-info{align-items:center;text-align:center}.btn-large{padding:.875rem 1.5rem;font-size:1rem}.memory-textarea{min-height:100px}}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.generated-image-section{margin:1.5rem 0;text-align:center}.generated-image-section h4{color:#374151;font-size:1.1rem;font-weight:600;margin-bottom:1rem}.image-container{margin:1rem 0;border-radius:12px;overflow:hidden;box-shadow:0 8px 32px #0000001a;background:#fff;padding:.5rem}.generated-image{width:100%;max-width:400px;height:auto;border-radius:8px;display:block;margin:0 auto}.image-actions{display:flex;gap:.75rem;justify-content:center;margin-top:1rem;flex-wrap:wrap}.image-actions .btn{padding:.5rem 1rem;font-size:.9rem;min-width:140px}.btn:focus-visible,.memory-textarea:focus-visible,.transaction-link:focus-visible{outline:2px solid #3ccf91;outline-offset:2px}.app-header{text-align:center;margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:2px solid #f0f0f0}.app-name{font-size:1.6rem;font-weight:700;color:#333;margin-bottom:.1rem}.app-creator{font-size:.9rem;color:#666;font-style:italic}.profile-card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 4px 16px #0000001a;margin-bottom:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.profile-info{display:flex;align-items:center;gap:1rem;flex:1;cursor:pointer;transition:opacity .2s}.profile-info:hover{opacity:.8}.profile-picture{width:60px;height:60px;border-radius:50%;object-fit:cover;border:3px solid#3ccf91;cursor:pointer}.profile-details{display:flex;flex-direction:column;gap:.25rem}.profile-name{font-size:1.1rem;font-weight:600;color:#333;cursor:pointer}.profile-memories{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.memories-label{font-size:.85rem;color:#666}.memories-count{font-size:1.5rem;font-weight:700;color:#3ccf91}.wallet-section,.memory-form,.success-section,.profile-card,.status-message{background:linear-gradient(135deg,#dcfce7,#bbf7d0)}
