/* Guest Account Pages */

.account-container { max-width: 680px; margin: 0 auto; }
.account-wide { max-width: 900px; }

/* Auth page tabs */
.auth-tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 24px; }
.auth-tab { padding: 12px 24px; border: none; background: none; font-size: 0.95rem; font-weight: 500;
    color: #94a3b8; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.auth-tab:hover { color: #1B4D3E; }
.auth-tab.active { color: #1B4D3E; border-bottom-color: #1B4D3E; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* Forms */
.acct-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; }
.acct-form h2 { font-size: 1.2rem; margin: 0 0 20px; color: #1B4D3E; }
.acct-form h3 { font-size: 1rem; margin: 24px 0 12px; color: #1B4D3E; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.acct-form h3:first-of-type { border-top: none; padding-top: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field-group label { font-size: 0.85rem; font-weight: 500; color: #333; }
.field-group .hint { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.field-group input, .field-group select, .field-group textarea {
    padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 0.95rem; font-family: inherit; transition: border-color 0.15s; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
    outline: none; border-color: #1B4D3E; box-shadow: 0 0 0 3px rgba(27,77,62,0.1); }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1B4D3E; }
.checkbox-row label { font-size: 0.9rem; cursor: pointer; }

.acct-btn { padding: 12px 28px; background: #1B4D3E; color: #fff; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s; width: 100%; }
.acct-btn:hover { background: #164034; }
.acct-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.acct-btn-outline { background: #fff; color: #1B4D3E; border: 2px solid #1B4D3E; }
.acct-btn-outline:hover { background: #f0fdf4; }
.acct-btn-danger { background: #dc2626; }
.acct-btn-danger:hover { background: #b91c1c; }
.acct-btn-sm { padding: 8px 16px; font-size: 0.85rem; width: auto; }

.acct-msg { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.acct-msg-success { background: #f0fdf4; color: #065f46; border: 1px solid #a7f3d0; }
.acct-msg-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.acct-msg-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.acct-link { color: #1B4D3E; font-weight: 500; text-decoration: none; cursor: pointer; }
.acct-link:hover { text-decoration: underline; }

.acct-divider { text-align: center; color: #94a3b8; font-size: 0.85rem; margin: 20px 0; position: relative; }
.acct-divider::before, .acct-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #e2e8f0; }
.acct-divider::before { left: 0; }
.acct-divider::after { right: 0; }

/* Companion cards */
.companion-list { display: flex; flex-direction: column; gap: 12px; }
.companion-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px;
    display: flex; align-items: center; gap: 14px; }
.companion-info { flex: 1; }
.companion-name { font-weight: 600; font-size: 0.95rem; }
.companion-detail { font-size: 0.8rem; color: #666; }
.companion-actions { display: flex; gap: 6px; }

/* Tag/chip picker */
.tag-section { margin-bottom: 24px; }
.tag-section h3 { margin-bottom: 12px; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px;
    border: 1px solid #d1d5db; border-radius: 20px; font-size: 0.85rem;
    cursor: pointer; transition: all 0.15s; user-select: none; }
.tag-chip:hover { border-color: #1B4D3E; }
.tag-chip.selected { background: #1B4D3E; color: #fff; border-color: #1B4D3E; }
.tag-freehand { margin-top: 8px; }
.tag-freehand input { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.85rem; }

/* Jarvis service toggles */
.service-toggle { display: flex; align-items: flex-start; gap: 14px; padding: 16px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 12px; }
.service-toggle-switch { flex-shrink: 0; margin-top: 2px; }
.service-toggle-switch input { width: 18px; height: 18px; accent-color: #1B4D3E; }
.service-toggle-info { flex: 1; }
.service-toggle-label { font-weight: 600; font-size: 0.9rem; }
.service-toggle-desc { font-size: 0.8rem; color: #666; margin-top: 2px; }
.service-toggle-config { margin-top: 8px; }
.service-toggle-config select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.85rem; }

/* Booking list */
.booking-list { display: flex; flex-direction: column; gap: 12px; }
.booking-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.booking-dates { font-weight: 600; }
.booking-detail { font-size: 0.85rem; color: #666; }
.booking-status { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.booking-status.confirmed { background: #f0fdf4; color: #065f46; }
.booking-status.requested { background: #fef3c7; color: #92400e; }
.booking-status.declined, .booking-status.expired_request, .booking-status.expired_payment { background: #fef2f2; color: #991b1b; }

/* Dashboard nav */
.dash-nav { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-nav a { padding: 8px 18px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem;
    color: #666; text-decoration: none; font-weight: 500; transition: all 0.15s; }
.dash-nav a:hover { border-color: #1B4D3E; color: #1B4D3E; }
.dash-nav a.active { background: #1B4D3E; color: #fff; border-color: #1B4D3E; }

/* Responsive */
@media (max-width: 640px) {
    .field-row, .field-row-3 { grid-template-columns: 1fr; }
    .auth-tabs { flex-wrap: wrap; }
    .companion-card { flex-direction: column; text-align: center; }
    .booking-item { flex-direction: column; text-align: center; }
}
