* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 204, 0, 0.25);
    --text: #ffffff;
    --text-muted: #c7c7c7;
    --accent: #ffcc00;
    --accent-dark: #e0b400;
    --success: #ffcc00;
    --danger: #e8272c;
    --danger-dark: #b81e22;
    --radius: 10px;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

h1, h2, h3, h4, .brand, button, .btn, .btn-secondary, .btn-danger {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }

/* Admin header (admin section only) */
.admin-header {
    background: var(--surface);
    border-bottom: 2px solid var(--danger);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
.brand { font-size: 1.25rem; font-weight: 800; }
.brand span { color: var(--accent); }
nav a { margin-left: 22px; color: var(--text-muted); font-weight: 500; }
nav a:hover { color: var(--text); }

/* Public site intro (centered, header-bar-free) */
.site-intro {
    text-align: center;
    padding: 56px 20px 28px;
}
.brand-link { display: inline-block; }
.brand-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.brand-title span { color: var(--accent); }
.brand-subtitle {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}
.lang-toggle {
    display: inline-flex;
    gap: 4px;
    margin-top: 22px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}
.lang-toggle a {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .04em;
}
.lang-toggle a:hover { color: var(--text); }
.lang-toggle a.active { background: var(--accent); color: #1a1206; }

main.container { padding: 40px 20px 60px; }

/* Hero */
.hero { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.hero h1 { font-size: 2rem; margin-bottom: 12px; }
.hero p { color: var(--text-muted); }

/* Business grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .business-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .business-grid { grid-template-columns: 1fr; }
}
.business-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.business-card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); }
.business-card img { width: 100%; height: 150px; object-fit: cover; }
.card-placeholder {
    width: 100%; height: 150px; display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); font-size: 2.5rem; font-weight: 700; color: var(--accent);
}
.card-body { padding: 16px; }
.card-body h2 { font-size: 1.1rem; margin: 8px 0 4px; color: var(--text); }
.category { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.summary { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }

/* Badges */
.badge {
    display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; padding: 3px 9px; border-radius: 999px;
}
.badge-open { background: rgba(255,204,0,.15); color: var(--success); }
.badge-filled { background: rgba(232,39,44,.15); color: var(--danger); }
.badge-closed { background: rgba(168,152,144,.15); color: var(--text-muted); }
.badge-pending { background: rgba(255,204,0,.15); color: var(--accent); }
.badge-approved { background: rgba(255,204,0,.18); color: var(--accent); }
.badge-rejected { background: rgba(232,39,44,.15); color: var(--danger); }
.badge-default { background: var(--surface-2); color: var(--text-muted); }

/* Business detail */
.back-link { display: block; text-align: center; margin-bottom: 20px; color: var(--text-muted); }
.business-detail { max-width: 720px; margin: 0 auto; text-align: center; }
.business-detail h1 { font-size: 1.8rem; margin: 10px 0 4px; }
.business-detail h3 { margin-top: 24px; margin-bottom: 8px; }
.business-detail p { text-align: left; }
.detail-image {
    display: block;
    margin: 16px auto 0;
    width: 100%;
    max-width: 320px;
    max-height: 320px;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

/* Forms */
.apply-section { max-width: 560px; margin: 40px auto 0; }
.apply-section h2 { margin-bottom: 16px; text-align: center; }
.application-form, .admin-form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text-muted); }
.required { color: var(--danger); }
input, textarea, select {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px; color: var(--text); font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, textarea:hover, select:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.35);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
}
textarea { resize: vertical; }

.policy-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 14px 16px;
}
.policy-box h4 { color: var(--accent); font-size: .9rem; margin-bottom: 6px; }
.policy-box h4:not(:first-child) { margin-top: 14px; }
.policy-box p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

.checkbox-label {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: .85rem;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button, .btn, .btn-secondary, .btn-danger {
    display: inline-block; border: none; border-radius: 8px; padding: 10px 18px;
    font-weight: 600; cursor: pointer; font-size: .9rem;
}
button[type="submit"], .btn { background: var(--accent); color: #1a1a1a; }
button[type="submit"]:hover, .btn:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: rgba(232,39,44,.15); color: var(--danger); border: 1px solid rgba(232,39,44,.35); }
.btn-danger:hover { background: rgba(232,39,44,.28); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: rgba(232,39,44,.12); color: var(--danger); border: 1px solid rgba(232,39,44,.3); }
.alert-success { background: rgba(255,204,0,.12); color: var(--accent); border: 1px solid rgba(255,204,0,.3); }
.alert ul { padding-left: 18px; }

.empty-state { color: var(--text-muted); padding: 30px 0; text-align: center; }
.muted { color: var(--text-muted); font-size: .85rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 40px; }
.site-footer p { color: var(--text-muted); font-size: .85rem; text-align: center; }

/* Admin */
.admin-body { background: var(--bg); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; }
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; }
.row-actions a { margin-right: 12px; color: var(--accent); }
.current-image { max-width: 200px; border-radius: 8px; margin-top: -8px; }

.login-box {
    max-width: 360px; margin: 100px auto; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
}
.login-box h1 { font-size: 1.3rem; margin-bottom: 20px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; }

.application-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; margin-bottom: 16px;
}
.application-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.application-header strong { margin-right: 8px; }
.application-actions { display: flex; gap: 10px; margin-top: 12px; }
