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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f2f4f7;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
}

h1, h2 { margin-bottom: 20px; color: #1a1a2e; }

/* ---------- Form ---------- */
.form-box {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
}

.form-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 6px;
    color: #444;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    font-size: 15px;
}

.form-box textarea { resize: vertical; min-height: 70px; }

.btn {
    display: inline-block;
    margin-top: 22px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn:hover { background: #0f0f1a; }

.error-box {
    background: #ffe6e6;
    color: #a30000;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ---------- Business Card ---------- */
.card-wrapper {
    width: 100%;
    max-width: 400px;
}

.business-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.business-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 0;
}

.card-top, .card-bottom { position: relative; z-index: 1; }

.card-logo {
    max-height: 42px;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-name { font-size: 20px; font-weight: 700; }
.card-position { font-size: 13px; opacity: 0.85; margin-top: 2px; }

.card-bottom { font-size: 12.5px; line-height: 1.6; opacity: 0.95; }
.card-bottom div { display: flex; gap: 6px; }

.qr-section {
    text-align: center;
    margin-top: 24px;
}

.qr-section img {
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.qr-hint { font-size: 13px; color: #666; margin-top: 10px; }

.actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Admin ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th { background: #1a1a2e; color: #fff; }

.admin-wrap { width: 100%; max-width: 1000px; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
}

.link-btn {
    background: #eef0f4;
    color: #1a1a2e;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
}

.link-btn.danger { background: #ffe6e6; color: #a30000; }
