/* The account menu top-right on hazit.es pages (home/coaches.py account_corner), like Padel Hub's. */
.acct { position: relative; }
.acct-row { display: inline-flex; align-items: center; gap: 8px; }
/* Owner only: «Admin» beside the photo (icon only on phones). */
.acct-admin { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: inherit; text-decoration: none; font: 600 13px/1 Inter, system-ui, sans-serif; }
.acct-admin:hover { background: rgba(255,255,255,.24); }
.acct-admin:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 520px) { .acct-admin { width: 34px; padding: 0; justify-content: center; } .acct-admin span { display: none; } }
.acct > summary { list-style: none; cursor: pointer; border-radius: 999px; padding: 3px 10px 3px 3px; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.acct .me { display: inline-flex; align-items: center; gap: 8px; }
.acct .me .av { display: grid; place-items: center; }
.acct .nm small { display: none; }
.acct .chev { font-size: 11px; opacity: .75; transition: transform .15s ease; }
.acct[open] .chev { transform: rotate(180deg); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 250px; padding: 6px; border-radius: 16px;
  background: #fff; color: #1c2321; border: 1px solid #e3e7e4; box-shadow: 0 18px 44px -18px rgba(0,0,0,.45);
  display: grid; gap: 2px; transform-origin: top right; animation: acct-in .14s ease-out; }
@keyframes acct-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.acct-pop a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; font: 500 14px/1.2 Inter, system-ui, sans-serif; }
.acct-pop a:hover, .acct-pop a:focus-visible { background: #f1f4f2; outline: none; }
.acct-head { border-bottom: 1px solid #e3e7e4; border-radius: 10px 10px 0 0 !important; margin-bottom: 4px; padding-bottom: 12px !important; }
.acct-head b { display: block; font-size: 15px; }
.acct-head small { color: #66706c; font-size: 12px; }
.acct-big { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center;
  background: #d5efe9; color: #0f766e; font-weight: 700; }
.acct-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #d5efe9; color: #0f766e; flex: none; }
.acct-out { color: #b42318 !important; }
.acct-out .acct-ico { background: #fde8e8; }
@media (prefers-color-scheme: dark) {
  .acct-pop { background: #181e1c; color: #e7ece9; border-color: #28302d; }
  .acct-pop a:hover, .acct-pop a:focus-visible { background: #1e2523; }
  .acct-head { border-color: #28302d; }
  .acct-head small { color: #94a09b; }
  .acct-ico { background: #232a28; }
  .acct-out { color: #ff8a80 !important; }
  .acct-out .acct-ico { background: #3a1513; }
}
@media (max-width: 640px) { .acct .nm { display: none; } .acct > summary { padding-right: 6px; } }
@media (prefers-reduced-motion: reduce) { .acct-pop { animation: none; } }
