/* Apple Glass — restrained premium glass design */
:root {
  --ag-bg: #0b1220;
  --ag-panel: rgba(21, 32, 49, .72);
  --ag-border: rgba(210, 230, 255, .13);
  --ag-text: #edf4ff;
  --ag-muted: #9eafc5;
  --ag-accent: #78baff;
}
body:not(.public-subscription-page) {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(77, 133, 194, .17), transparent 38%),
    radial-gradient(ellipse at 100% 85%, rgba(66, 180, 172, .10), transparent 34%),
    #0b1220 !important;
  color: var(--ag-text);
}
.app { background: transparent !important; }
.sidebar {
  background: rgba(12, 21, 35, .82) !important;
  border-color: var(--ag-border) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.brand .logo {
  background: linear-gradient(145deg, #a8d8ff, #548fca) !important;
  color: #071424 !important;
  box-shadow: 0 5px 22px rgba(95, 169, 232, .18);
}
.sidebar nav a, .sidebar a {
  transition: background .2s ease, border-color .2s ease;
}
.sidebar nav a.active {
  background: rgba(125, 184, 238, .13) !important;
  border: 1px solid rgba(150, 200, 245, .17);
  color: #d9edff !important;
}
.topbar, .card, .panel, .stat-card,
.customers-hero, .customers-create, .customers-directory,
.client-card, .customer-stat, .login-card,
.layout .card, .layout .panel {
  background: var(--ag-panel) !important;
  border: 1px solid var(--ag-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .13) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar { border-radius: 16px !important; }
.customers-hero, .customers-create, .customers-directory {
  padding: clamp(16px, 2.5vw, 26px);
}
.client-card {
  background: rgba(16, 28, 44, .66) !important;
  transition: transform .2s ease, border-color .2s ease;
}
.client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 197, 246, .32) !important;
}
.customer-stat-icon, .customers-heading-icon {
  border-radius: 13px !important;
}
h1, h2, h3, h4, .client-name {
  color: #edf5ff;
}
.muted, .customers-hero p, .customers-section-heading p,
.client-id, .customer-stat small {
  color: var(--ag-muted) !important;
}
input, textarea, select {
  background: rgba(7, 16, 29, .64) !important;
  color: #edf4ff !important;
  border: 1px solid rgba(190, 215, 244, .17) !important;
  border-radius: 12px !important;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(120, 186, 255, .65) !important;
  box-shadow: 0 0 0 3px rgba(120, 186, 255, .10) !important;
}
button, .button, .client-manage-button,
.login-card button, .customers-submit button {
  background: linear-gradient(180deg, #8bc5f5, #64a6df) !important;
  color: #071727 !important;
  border: 1px solid rgba(207, 233, 255, .3) !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 16px rgba(77, 153, 220, .12);
  transition: filter .18s ease, transform .18s ease;
}
button:hover, .button:hover, .client-manage-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
button.secondary, .button.secondary {
  background: rgba(151, 183, 215, .10) !important;
  color: #dcecff !important;
  border-color: var(--ag-border) !important;
}
button.danger, .button.danger {
  background: rgba(205, 91, 104, .16) !important;
  color: #ffc2c8 !important;
  border-color: rgba(235, 123, 135, .24) !important;
}
.login-wrap {
  background: transparent !important;
}
.login-card {
  border-radius: 24px !important;
}
body.public-subscription-page {
  background:
    radial-gradient(ellipse at 12% 5%, rgba(111, 173, 225, .13), transparent 40%),
    #0b1220 !important;
}
.public-subscription-page .public-subscription-card {
  background: rgba(18, 29, 45, .80) !important;
  border: 1px solid rgba(210, 230, 255, .15) !important;
  border-radius: 26px !important;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .25) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.public-subscription-page .public-subscription-box,
.public-subscription-page .public-expiry-card,
.public-subscription-page .public-stat,
.public-subscription-page .public-update-card {
  background: rgba(140, 180, 220, .055) !important;
  border-color: rgba(210, 230, 255, .12) !important;
  border-radius: 17px !important;
}
.public-subscription-page .public-copy-btn {
  background: linear-gradient(180deg, #8bc5f5, #64a6df) !important;
  color: #071727 !important;
  border-radius: 11px !important;
}
@media (max-width: 600px) {
  .card, .panel, .customers-hero, .customers-create,
  .customers-directory, .client-card {
    border-radius: 16px !important;
  }
  .public-subscription-page .public-subscription-card {
    border-radius: 20px !important;
  }
}
