/* ── EHB My Account Portal ── */
#ehb-my-account { font-family: 'Lato', sans-serif; color: #2C1A0E; max-width: 900px; margin: 0 auto; }

/* Auth */
.ema-auth-wrap { display: flex; justify-content: center; padding: 40px 16px; }
.ema-auth-box  { background: #fff; border: 1.5px solid #E8DDD0; border-radius: 12px; padding: 36px; width: 100%; max-width: 440px; box-shadow: 0 4px 24px rgba(44,26,14,.08); }
.ema-auth-icon { font-size: 36px; text-align: center; margin-bottom: 8px; }
.ema-auth-title{ font-family: 'Playfair Display', Georgia, serif; font-size: 24px; text-align: center; margin: 0 0 6px; color: #2C1A0E; }
.ema-auth-sub  { text-align: center; color: #7A6652; font-size: 14px; margin: 0 0 24px; }
.ema-auth-links{ text-align: center; margin-top: 16px; font-size: 13px; color: #7A6652; display: flex; justify-content: center; gap: 8px; }
.ema-auth-links a { color: #C9972A; text-decoration: none; font-weight: 600; }
.ema-auth-links a:hover { text-decoration: underline; }
.ema-pw-wrap { position: relative; }
.ema-pw-wrap input { padding-right: 44px !important; }
.ema-pw-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; padding: 0; line-height: 1; }

/* Header */
.ema-header { display: flex; align-items: center; justify-content: space-between; background: #2C1A0E; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.ema-welcome { display: flex; align-items: center; gap: 12px; }
.ema-avatar  { width: 42px; height: 42px; border-radius: 50%; background: #C9972A; color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ema-name    { font-weight: 700; color: #FCF8F0; font-size: 15px; }
.ema-email   { font-size: 12px; color: #C9B99A; }
.ema-logout  { background: transparent; border: 1.5px solid #C9972A; color: #C9972A; border-radius: 6px; padding: 7px 14px; font-size: 12px; font-weight: 700; text-decoration: none; transition: all .15s; }
.ema-logout:hover { background: #C9972A; color: #fff; }

/* Nav */
.ema-nav { display: flex; gap: 4px; background: #F5EDE0; border-radius: 8px; padding: 4px; margin-bottom: 20px; }
.ema-tab { flex: 1; text-align: center; padding: 10px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; color: #7A6652; transition: all .15s; }
.ema-tab:hover  { background: #fff; color: #2C1A0E; }
.ema-tab.active { background: #2C1A0E; color: #FCF8F0; }

/* Card */
.ema-card { background: #fff; border: 1.5px solid #E8DDD0; border-radius: 10px; padding: 24px; }
.ema-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; margin: 0 0 18px; color: #2C1A0E; }

/* Msg */
.ema-msg { padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.ema-msg-success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.ema-msg-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* Form */
.ema-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ema-field label { display: block; font-size: 12px; font-weight: 700; color: #7A6652; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.ema-field input { width: 100%; padding: 10px 12px; border: 1.5px solid #E8DDD0; border-radius: 6px; font-size: 14px; color: #2C1A0E; background: #FAFAFA; box-sizing: border-box; transition: border-color .15s; }
.ema-field input:focus { outline: none; border-color: #C9972A; background: #fff; }

/* Button */
.ema-btn { background: #2C1A0E; color: #FCF8F0; border: none; border-radius: 6px; padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.ema-btn:hover { background: #C9972A; }
.ema-btn-full { width: 100%; margin-top: 16px; }
.ema-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Booking card */
.ema-booking-card { border: 1.5px solid #E8DDD0; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.ema-booking-card.ema-unpaid { border-left: 4px solid #C9972A; }
.ema-booking-card.ema-confirmed { border-left: 4px solid #16A34A; }
.ema-booking-card.ema-cancelled { border-left: 4px solid #DC2626; opacity: .75; }
.ema-bk-head   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ema-bk-room   { font-weight: 700; font-size: 15px; color: #2C1A0E; }
.ema-bk-dates  { font-size: 13px; color: #7A6652; margin-top: 2px; }
.ema-bk-id     { font-size: 11px; color: #A89070; margin-top: 2px; }
.ema-bk-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.status-confirmed { background: #DCFCE7; color: #166534; }
.status-pending   { background: #FEF3C7; color: #92400E; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.ema-bk-details{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 13px; background: #FAFAFA; border-radius: 6px; padding: 10px 12px; }
.ema-bk-details span { display: block; color: #7A6652; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ema-bk-details strong { font-size: 14px; color: #2C1A0E; }
.ema-dep-badge { display: inline-block; background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-top: 6px; }
.ema-balance-due { background: #FFF5F5; border: 1px solid #FCA5A5; border-radius: 6px; padding: 10px 12px; margin-top: 10px; font-size: 13px; color: #991B1B; font-weight: 600; }

/* Balance tab */
.ema-balance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.ema-bal-card { background: #FAFAFA; border: 1.5px solid #E8DDD0; border-radius: 8px; padding: 14px; text-align: center; }
.ema-bal-card span  { display: block; font-size: 11px; font-weight: 700; color: #7A6652; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ema-bal-card strong{ display: block; font-size: 18px; font-weight: 700; color: #2C1A0E; }
.ema-bal-card small { display: block; font-size: 11px; color: #7A6652; }
.ema-bal-due { border-color: #C9972A; background: #FFFBF0; }
.ema-bal-due strong { color: #C9972A; }
.ema-bk-amounts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; font-size: 13px; background: #FAFAFA; border-radius: 6px; padding: 10px 12px; margin: 8px 0; }
.ema-bk-amounts span  { display: block; font-size: 11px; color: #7A6652; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.ema-green { color: #166534; }
.ema-red   { color: #991B1B; }
.ema-balance-notice { background: #FFF5F5; border: 1px solid #FCA5A5; border-radius: 6px; padding: 10px 12px; font-size: 13px; color: #7A6652; margin-top: 8px; }

/* Empty */
.ema-empty { text-align: center; padding: 40px 20px; color: #7A6652; font-size: 14px; }

/* Mobile */
@media (max-width: 600px) {
    .ema-grid-2, .ema-bk-details, .ema-bk-amounts, .ema-balance-summary { grid-template-columns: 1fr 1fr; }
    .ema-nav { flex-wrap: wrap; }
    .ema-tab { flex: 1 1 30%; font-size: 12px; padding: 8px 4px; }
    .ema-auth-box { padding: 24px 16px; }
    .ema-header { flex-wrap: wrap; gap: 10px; }
}
