*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a0a0a; color: #e0e0e0; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
h1 { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 8px; color: #fff; letter-spacing: -0.02em; }
.subtitle { text-align: center; color: #888; font-size: 0.95rem; margin-bottom: 48px; }
h2 { font-size: 1.4rem; font-weight: 600; margin: 48px 0 24px; color: #fff; border-bottom: 1px solid #222; padding-bottom: 12px; }
.section-desc { color: #888; font-size: 0.9rem; margin-bottom: 20px; }

/* Logo Cards */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.logo-card { background: #151515; border: 1px solid #2a2a2a; border-radius: 16px; padding: 24px; transition: border-color 0.2s, box-shadow 0.2s; }
.logo-card:hover { border-color: #444; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.logo-label { font-size: 0.85rem; font-weight: 600; color: #666; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.logo-variants { display: flex; gap: 12px; margin-bottom: 16px; }
.variant { flex: 1; border-radius: 12px; padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.variant.light { background: #f5f5f5; }
.variant.dark { background: #1a1a1a; border: 1px solid #333; }
.logo-img { width: 200px; height: 200px; object-fit: contain; }
.logo-img.inverted, .comp-logo.inverted { filter: invert(1); }
.variant-label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.logo-description { font-size: 0.85rem; color: #999; margin-bottom: 16px; text-align: center; }

/* Star Ratings */
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rating-label { font-size: 0.8rem; color: #777; min-width: 90px; }
.stars { display: flex; gap: 4px; cursor: pointer; }
.star { font-size: 1.2rem; color: #333; transition: color 0.15s; user-select: none; }
.star.active { color: #f5a623; }

textarea.logo-notes { width: 100%; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px; color: #ccc; padding: 10px; font-size: 0.85rem; resize: vertical; min-height: 60px; margin-top: 12px; font-family: inherit; }
textarea.logo-notes:focus { outline: none; border-color: #f5a623; }

/* Brand Names */
.names-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.name-card { background: #151515; border: 1px solid #2a2a2a; border-radius: 12px; padding: 16px; text-align: center; transition: border-color 0.2s; }
.name-card:hover { border-color: #444; }
.name-text { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.05em; color: #fff; display: block; margin-bottom: 10px; }
.name-rating { display: flex; justify-content: center; }

/* Comparison Table */
.comp-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comp-table th { background: #151515; color: #888; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 8px; text-align: center; border-bottom: 1px solid #2a2a2a; }
.comp-table td { padding: 12px 8px; text-align: center; border-bottom: 1px solid #1a1a1a; }
.comp-logo-cell { display: flex; align-items: center; gap: 10px; text-align: left !important; }
.comp-logo { width: 64px; height: 64px; object-fit: contain; }
.comp-select { background: #111; border: 1px solid #2a2a2a; color: #ccc; padding: 6px 10px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; }
.comp-select:focus { outline: none; border-color: #f5a623; }

/* Color Swatches */
.color-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.color-swatch { width: 64px; height: 64px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, transform 0.15s; position: relative; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { transform: scale(1.2); box-shadow: 0 0 12px rgba(245,166,35,0.6); border-color: #f5a623; }
.color-swatch::after { content: attr(data-name); position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: #666; white-space: nowrap; }

/* Final Section */
.final-section { background: #151515; border: 1px solid #2a2a2a; border-radius: 16px; padding: 32px; margin-top: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: #888; margin-bottom: 6px; }
.form-group select, .form-group textarea, .form-group input { width: 100%; background: #0d0d0d; border: 1px solid #2a2a2a; color: #ccc; padding: 10px; border-radius: 8px; font-size: 0.9rem; font-family: inherit; }
.form-group select:focus, .form-group textarea:focus, .form-group input:focus { outline: none; border-color: #f5a623; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: #f5a623; color: #000; }
.btn-primary:hover { background: #ffc040; transform: translateY(-1px); }
.btn-secondary { background: #222; color: #ccc; border: 1px solid #333; }
.btn-secondary:hover { background: #2a2a2a; border-color: #555; }
.btn-group { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: #1a1a1a; border: 1px solid #333; color: #fff; padding: 14px 24px; border-radius: 10px; font-size: 0.9rem; opacity: 0; transform: translateY(10px); transition: all 0.3s; z-index: 1000; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Password Overlay */
.pw-overlay { position: fixed; inset: 0; background: #0a0a0a; display: flex; align-items: center; justify-content: center; z-index: 9999; }
.pw-box { background: #151515; border: 1px solid #2a2a2a; border-radius: 16px; padding: 48px; text-align: center; max-width: 400px; width: 90%; }
.pw-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 8px; border: none; padding: 0; }
.pw-desc { color: #888; font-size: 0.9rem; margin-bottom: 24px; }
.pw-input { width: 100%; background: #0d0d0d; border: 1px solid #2a2a2a; color: #ccc; padding: 12px; border-radius: 8px; font-size: 1rem; font-family: inherit; text-align: center; margin-bottom: 16px; }
.pw-input:focus { outline: none; border-color: #f5a623; }
.pw-btn { width: 100%; justify-content: center; }
.pw-error { color: #e74c3c; font-size: 0.85rem; margin-top: 12px; min-height: 1.2em; }

/* Done Overlay */
.done-overlay { position: fixed; inset: 0; background: #0a0a0a; display: flex; align-items: center; justify-content: center; z-index: 9999; }

@media (max-width: 640px) {
    .logo-grid { grid-template-columns: 1fr; }
    .names-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.6rem; }
    .logo-img { width: 140px; height: 140px; }
}
