.account-modal-content {
  width: min(1040px, calc(100vw - 28px));
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
}

.account-modal-content [hidden] {
  display: none !important;
}

.account-header {
  margin-bottom: 22px;
}

.account-header h2 {
  margin: 4px 0 6px;
  color: var(--accent-color);
  font-family: 'Orbitron', sans-serif;
}

.account-header p {
  color: #b9c1cf;
}

.account-kicker,
.account-card-label {
  display: block;
  color: #00f0ff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.account-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 70, 85, 0.4);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 70, 85, 0.12);
}

.account-message.success {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
}

.account-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-panel,
.account-card,
.account-plan {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 70, 85, 0.22);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.account-panel {
  padding: 20px;
}

.account-panel h3,
.account-plans h3 {
  color: #fff;
  margin: 0 0 16px;
}

.account-panel label {
  display: block;
  color: #9ba6b8;
  font-size: 0.85rem;
  margin: 12px 0 6px;
}

.account-input {
  width: 100%;
  min-height: 42px;
  color: #fff;
  background: rgba(10, 10, 10, 0.64);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font: 0.95rem 'Exo 2', sans-serif;
  outline: none;
}

.account-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.account-primary,
.account-secondary,
.account-ghost {
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font: 700 0.95rem 'Exo 2', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-primary,
.account-secondary {
  width: 100%;
  margin-top: 16px;
}

.account-primary {
  color: #fff;
  border: 1px solid var(--main-color);
  background: linear-gradient(145deg, rgba(255, 70, 85, 0.95), rgba(255, 70, 85, 0.66));
  box-shadow: 0 8px 22px rgba(255, 70, 85, 0.25);
}

.account-secondary {
  color: #001114;
  border: 1px solid var(--accent-color);
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.95), rgba(0, 240, 255, 0.62));
  box-shadow: 0 8px 22px rgba(0, 240, 255, 0.18);
}

.account-primary:hover,
.account-secondary:hover,
.account-ghost:hover,
.account-plan:hover {
  transform: translateY(-2px);
}

.account-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.account-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.06);
}

.account-toolbar strong {
  display: block;
  color: #fff;
  word-break: break-word;
}

.account-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 70, 85, 0.45);
  padding: 0 16px;
}

.account-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.account-card {
  min-height: 190px;
  padding: 18px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.account-card strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  word-break: break-word;
}

.account-card small {
  display: block;
  color: #aeb8c8;
  margin-top: 8px;
}

.account-vk-card {
  border-color: rgba(77, 118, 161, 0.55);
}

.account-vk-card::after {
  content: 'VK';
  position: absolute;
  right: 16px;
  bottom: 10px;
  font: 700 3rem 'Orbitron', sans-serif;
  color: rgba(77, 118, 161, 0.22);
}

.clock-face {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(0, 240, 255, 0.55);
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.18);
}

.clock-hand {
  position: absolute;
  left: 28px;
  top: 10px;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent-color);
  transform-origin: bottom center;
  animation: accountClockSpin 2.6s linear infinite;
}

.clock-dot {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--main-color);
}

@keyframes accountClockSpin {
  to { transform: rotate(360deg); }
}

.account-activate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.account-activate-form .account-primary {
  margin-top: 0;
}

.account-plans {
  margin-top: 4px;
}

.account-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-plan {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: #fff;
  text-decoration: none;
  border-color: rgba(0, 240, 255, 0.2);
}

.account-plan span {
  color: #b9c1cf;
}

.account-plan strong {
  color: var(--accent-color);
  font: 700 1.7rem 'Orbitron', sans-serif;
}

.account-plan small {
  color: #aeb8c8;
}

.account-plan-hot {
  border-color: rgba(255, 70, 85, 0.6);
  box-shadow: 0 0 22px rgba(255, 70, 85, 0.14);
}

.account-plan-hot strong {
  color: var(--main-color);
}

@media (max-width: 860px) {
  .account-auth-grid,
  .account-card-grid,
  .account-plan-grid {
    grid-template-columns: 1fr;
  }

  .account-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
