body { font-family: Arial, sans-serif; background: #f4f6f9; margin: 0; padding: 0; }
.container { max-width: 1000px; margin: 40px auto; padding: 20px; }

/* Auth */
.auth-box { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.auth-box input { padding: 10px; width: 60%; border-radius: 5px; border: 1px solid #ccc; }
.auth-box button { padding: 10px 15px; border: none; background: #4c6ef5; color: white; border-radius: 5px; cursor: pointer; margin-left: 5px; }
.auth-box button:hover { background: #3b5bdb; }

/* Upload */
.upload-section { margin-bottom: 20px; }
.upload-box { border: 2px dashed #4c6ef5; padding: 30px; text-align: center; border-radius: 10px; background: #eef2ff; cursor: pointer; transition: 0.2s; margin-bottom: 15px; }
.upload-box.dragover { background: #dbe4ff; border-color: #364fc7; }
.file-item { margin-bottom: 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.gallery-item { position: relative; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer; }
.overlay { position: absolute; bottom:0; left:0; right:0; background: rgba(0,0,0,0.7); color:white; padding:5px; font-size:12px; border-radius:0 0 8px 8px; opacity:0; overflow:hidden; transition:0.2s; display:flex; justify-content:flex-end; gap:5px; }
.gallery-item:hover .overlay { opacity:1; }
.delete-btn { background:red; border:none; color:white; padding:2px 5px; border-radius:3px; cursor:pointer; font-size:10px; }

/* Copy Button */
.copy-btn { background: rgba(0,0,0,0.6); border:none; color:white; padding:5px; border-radius:5px; cursor:pointer; font-size:14px; position:absolute; top:5px; right:5px; display:none; }
.gallery-item:hover .copy-btn, .gallery-item:focus-within .copy-btn { display:inline-block; }
.copy-btn.copied svg path { stroke: #28a745; }

.copy-icon { width: 24px; height: 24px; display: block; color: white }
.copy-btn.copied .copy-icon { color: #28a745; }


/* Modals */
.modal { display:flex; position:fixed; z-index:999; left:0; top:0; width:100%; height:100%; background: rgba(0,0,0,0.8); justify-content:center; align-items:center; }
.modal-content img { display:block; width:auto; max-width:100%; max-height:95vh; margin:0 auto; object-fit:contain; border-radius:8px; box-shadow:0 2px 15px rgba(0,0,0,0.6); }

/* Preview arrows */
.modal-content button.arrow { font-size:40px; background: rgba(0,0,0,0.5); color:white; border:none; border-radius:50%; width:50px; height:50px; cursor:pointer; position:fixed; top:50%; transform: translateY(-50%); z-index:1000; }
.modal-content button.left { left:20px; }
.modal-content button.right { right:20px; }

/* Account / Token modal */
.account-modal { background: #fff; padding:20px 30px; max-width:500px; width:90%; border-radius:10px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); overflow-y:auto; color:#000; position:relative; }
.account-modal button { background:#4c6ef5; color:white; padding:10px 15px; border:none; border-radius:6px; cursor:pointer; font-size:16px; width:100%; margin-top:10px; }
.account-modal button:disabled { background:#a5b4fc; cursor:not-allowed; }
.close { position:absolute; right:15px; top:10px; font-size:24px; font-weight:bold; cursor:pointer; color:#333; }
.warning { color:red; font-weight:bold; margin-bottom:15px; }
