:root {
    --blue: #1f4e8c;
    --blue-dark: #163a67;
    --bg: #f4f6f9;
    --border: #dfe3e8;
    --text: #24303d;
    --green: #2e8b57;
    --red: #c0392b;
    --amber: #b8860b;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }

.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--blue-dark), #0f2a4a); }
.auth-box { background: #fff; padding: 40px; border-radius: 10px; width: 340px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-box-wide { width: 480px; }
.auth-box h1 { margin-top: 0; font-size: 20px; text-align: center; color: var(--blue-dark); }
.auth-box label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #556; }
.auth-box input { width: 100%; padding: 10px; margin-top: 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.auth-box button { width: 100%; padding: 11px; background: var(--blue); color: #fff; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.auth-box button:hover { background: var(--blue-dark); }
.auth-footer-link { text-align: center; font-size: 13px; margin-top: 16px; }
.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }

.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fdeceb; color: var(--red); border: 1px solid #f5c6c2; }

.admin-topbar { background: var(--blue-dark); color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-topbar .brand { font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.link-btn { background: none; border: none; color: #cfe0f5; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }

.admin-shell { display: flex; min-height: calc(100vh - 48px); }
.admin-sidebar { width: 210px; background: #fff; border-right: 1px solid var(--border); padding: 16px 0; }
.admin-sidebar ul { list-style: none; margin: 0; padding: 0; }
.admin-sidebar li a { display: block; padding: 10px 20px; color: var(--text); text-decoration: none; font-size: 14px; }
.admin-sidebar li.active a, .admin-sidebar li a:hover { background: var(--bg); color: var(--blue); font-weight: 600; }

.admin-content { flex: 1; padding: 28px; }
.admin-content h1 { margin-top: 0; font-size: 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--blue); }
.stat-label { font-size: 13px; color: #667; margin-top: 4px; }

.hint { color: #778; font-size: 13px; }

.data-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; background: #fff; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.data-table th { background: var(--bg); font-weight: 600; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #eee; }
.badge-active, .badge-paid, .badge-open { background: #e3f5ea; color: var(--green); }
.badge-suspended, .badge-overdue, .badge-unpaid { background: #fdeceb; color: var(--red); }
.badge-pending, .badge-cancelled { background: #fbf3d9; color: var(--amber); }

.client-topbar { background: var(--blue-dark); color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.client-topbar .brand { font-weight: 700; }
.client-content { max-width: 960px; margin: 28px auto; padding: 0 20px; }
.client-content h1 { font-size: 22px; }
.client-content h2 { font-size: 17px; margin-top: 30px; color: var(--blue-dark); }
.ticket-list { list-style: none; padding: 0; }
.ticket-list li { padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; font-size: 13px; }

/* Etapa 3 - shop / cart / checkout */
.shop-nav { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.shop-nav a { color: #cfe0f5; text-decoration: none; }
.shop-nav a.active, .shop-nav a:hover { color: #fff; font-weight: 600; }
.shop-content { max-width: 1100px; margin: 28px auto; padding: 0 20px; }
.shop-content h1 { font-size: 22px; }
.shop-group-title { font-size: 18px; color: var(--blue-dark); margin-top: 30px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 10px; }
.product-card { display: block; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: 8px; padding: 16px; text-decoration: none; color: var(--text); transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.product-card h3 { margin: 0 0 6px; font-size: 16px; }
.product-card .tagline { font-size: 12px; color: #778; margin: 0 0 8px; }
.product-card .short-desc { font-size: 12px; color: #556; margin: 0 0 10px; }
.product-card .price-from { font-size: 14px; color: var(--blue-dark); }
.stock-badge.out { display: inline-block; margin-top: 8px; font-size: 11px; padding: 3px 8px; border-radius: 10px; background: #fdeceb; color: var(--red); }

.product-page { max-width: 760px; }
.product-page .tagline { color: #778; font-size: 14px; }
.product-description { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; font-size: 14px; }
.price-summary { background: var(--bg); border-radius: 8px; padding: 14px; margin: 16px 0; font-size: 14px; display: flex; gap: 28px; }

/* clase utilitare comune (formulare, butoane, tab-uri) - aliniate cu admin.css */
.btn-primary { background: var(--blue); color: #fff; border: none; padding: 9px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-danger { background: var(--red); color: #fff; border: none; padding: 9px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.link-btn-inline { background: none; border: none; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
.link-btn-inline.danger { color: var(--red); }

.admin-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; max-width: 900px; margin-bottom: 24px; }
.admin-form label { display: block; font-size: 13px; font-weight: 600; color: #556; margin-bottom: 14px; }
.admin-form input[type="text"], .admin-form input[type="number"], .admin-form select, .admin-form textarea {
    width: 100%; padding: 8px 10px; margin-top: 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit;
}
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.radio-label { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 400 !important; font-size: 13px !important; }
.radio-label input { width: auto !important; margin-top: 2px; }

.alert-success { background: #e3f5ea; color: var(--green); border: 1px solid #b7e4c7; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
h2 { font-size: 16px; margin-top: 28px; color: var(--blue-dark); }

/* Etapa 6 - configuratie in cos */
.option-tag { font-size: 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; margin-bottom: 3px; display: inline-block; }
