/* v5.4 header cleanup: menu dropdown, inline version tag, darker wallet styling */
.fc54-brand-row{display:flex;align-items:center;gap:12px;min-width:0;flex:0 0 auto}
.brand-version{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;letter-spacing:.5px;font-weight:700;color:#d1b8ff;border:1px solid #7842d44d;background:#8246e01b;padding:10px 14px;border-radius:999px}
.brand-version .status-dot{margin-right:0}

.topbar{align-items:center;gap:14px}
.fc512-primary-nav{justify-content:flex-start}
.fc512-top-wallet{gap:10px}
.fc512-minute-pill{background:linear-gradient(180deg,#1d1a2d,#161422);border-color:#423558;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.fc512-minute-copy strong{font-size:15px;color:#fbf7ff}
.fc512-minute-copy small{color:#a89dbc}
.fc512-buy-button{background:linear-gradient(180deg,#2b2540,#221d34);border:1px solid #4d3b69;color:#f6f1ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.fc512-buy-button:hover:not(:disabled){background:linear-gradient(180deg,#37304e,#28223d);border-color:#6a578c}

.fc54-menu{position:relative;display:flex;align-items:center}
.fc54-menu-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border-radius:12px;border:1px solid #3d3653;background:linear-gradient(180deg,#211d31,#181524);color:#f1ecff;font-weight:700;font-size:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.fc54-menu-button:hover{border-color:#6b59a2}
.fc54-menu-button[aria-expanded="true"]{border-color:#8c71d8;background:linear-gradient(180deg,#2c2543,#1f1a31)}
.fc54-menu-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:40;width:min(300px,calc(100vw - 28px));padding:14px;border-radius:18px;border:1px solid #3d3550;background:linear-gradient(180deg,rgba(25,23,38,.98),rgba(17,15,27,.98));box-shadow:0 24px 60px rgba(0,0,0,.42);display:flex;flex-direction:column;gap:8px;backdrop-filter:blur(12px)}
.fc54-menu-title{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:#a89dbc;font-weight:800;padding:2px 2px 6px}
.fc54-language-picker{display:flex;flex-direction:column;gap:6px;padding:10px 10px 8px;border:1px solid #2f2b44;border-radius:13px;background:rgba(255,255,255,.03)}
.fc54-language-picker label{display:flex;align-items:center;gap:7px;font-size:12px;color:#e8e2ff;font-weight:700}
.fc54-language-picker select{width:100%;min-height:40px;padding:8px 10px;background:#110f1d;border:1px solid #3b3650;border-radius:10px;color:#efe9ff}
.fc54-menu-panel .nav-button,
.fc54-menu-panel .fc514-header-verify{width:100%;justify-content:flex-start;min-height:42px;padding:10px 12px;border-radius:12px;background:#201b30;border:1px solid #36304a;color:#ede6ff;font-size:12px;box-shadow:none}
.fc54-menu-panel .nav-button:hover,
.fc54-menu-panel .fc514-header-verify:hover{border-color:#6851a0;background:#261f39}
.fc54-menu-panel .fc48-badge{margin-left:auto}
.fc54-menu-panel a.nav-button{text-decoration:none}
.nav-right{gap:10px;position:relative}

@media (max-width:1200px){
  .topbar{justify-content:space-between}
  .fc54-brand-row{order:1}
  .nav-right{order:2;margin-left:auto}
  .fc512-primary-nav{order:3;flex:1 1 100%;width:100%;justify-content:space-between}
}
@media (max-width:850px){
  .fc54-brand-row{width:100%;justify-content:space-between}
  .brand-version{font-size:10px;padding:8px 11px}
  .fc512-primary-nav{gap:8px}
  .fc512-top-wallet{width:100%;justify-content:flex-start;flex-wrap:wrap}
}
@media (max-width:650px){
  .topbar{padding:10px 0;gap:10px}
  .fc54-brand-row{align-items:flex-start;flex-direction:column;gap:8px}
  .brand-version{padding:7px 10px}
  .nav-right{width:auto;max-width:none}
  .online-pill{display:inline-flex}
  .fc54-menu-button{min-height:38px;padding:8px 12px}
  .fc512-primary-nav{justify-content:center}
  .fc512-top-wallet{justify-content:center}
  .fc512-minute-pill{min-height:40px}
  .fc512-buy-button{min-height:40px}
}
