:root {
    --bg: #fcfcfd;
    --card: #ffffff;
    --primary: #0071e3;
    --text: #1d1d1f;
    --text-light: #86868b;
    --border: #e5e7eb;
    --success: #34c759;
    --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; -webkit-font-smoothing: antialiased; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.navbar { padding: 30px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-tag { background: #f0f7ff; color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; }

.hero { padding: 40px 0; }
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -2px; text-align: center; margin-bottom: 30px; }
.accent-text { color: var(--primary); }

.app-card { background: var(--card); max-width: 420px; margin: 0 auto; padding: 28px; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.05); border: 1px solid var(--border); }

.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: #f1f5f9; padding: 4px; border-radius: 14px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; font-weight: 600; font-family: inherit; border-radius: 10px; color: var(--text-light); transition: 0.2s; }
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Drop Zone & File Preview */
.drop-zone { border: 2px dashed var(--border); border-radius: 18px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.2s; }
.drop-zone:hover { border-color: var(--primary); background: #f9fbff; }
.dz-icon { font-size: 24px; color: var(--primary); margin-bottom: 8px; }

.file-preview-pill { display: flex; align-items: center; justify-content: space-between; background: #f1f5f9; padding: 12px 16px; border-radius: 12px; margin-top: 15px; font-weight: 600; font-size: 14px; border: 1px solid var(--border); }
.remove-file-btn { background: #e2e8f0; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: 0.2s; }
.remove-file-btn:hover { background: #cbd5e1; color: #ef4444; }

/* Code Box & Sharing */
.code-box { text-align: center; background: #f9fafb; padding: 20px; border-radius: 16px; margin-bottom: 20px; border: 1px solid var(--border); }
.code-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; display: block; }
.code-value { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; color: var(--text); font-weight: 700; margin-bottom: 10px; }

.share-actions { display: flex; gap: 10px; justify-content: center; margin-top: 15px; }
.btn-share-primary { background: var(--primary); color: white; border: none; padding: 10px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-share-secondary { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); padding: 10px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-share-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-share-secondary:hover { background: #e2e8f0; }

/* Progress & Inputs */
.progress-track { height: 6px; background: #eee; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s linear; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; }

.modern-input { width: 100%; padding: 16px; border: 2px solid var(--border); border-radius: 14px; font-family: 'JetBrains Mono', monospace; font-size: 24px; text-align: center; transition: 0.2s; }
.modern-input:focus { outline: none; border-color: var(--primary); }

.btn-main { width: 100%; padding: 16px; border: none; border-radius: 14px; background: var(--primary); color: white; font-weight: 700; font-size: 15px; margin-top: 20px; cursor: pointer; transition: 0.2s; }
.btn-main:disabled { background: #e5e7eb; cursor: not-allowed; }
.btn-ghost { background: none; border: none; color: var(--primary); font-weight: 600; margin-top: 15px; cursor: pointer; font-size: 14px; width: 100%; }

#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #1d1d1f; color: white; padding: 10px 20px; border-radius: 50px; font-size: 13px; opacity: 0; transition: 0.3s; pointer-events: none; z-index: 1000; }
#toast.show { opacity: 1; bottom: 40px; }
