.accounts-grid {
  max-width: 1360px;
  margin: 0 auto 16px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.account-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.account-card.card-active {
  background: rgba(10, 132, 255, 0.18) !important;
  border-color: rgba(10, 132, 255, 0.5) !important;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.18);
}

.account-card.card-cooldown {
  background: rgba(255, 69, 58, 0.16) !important;
  border-color: rgba(255, 69, 58, 0.45) !important;
  box-shadow: 0 4px 20px rgba(255, 69, 58, 0.14);
}

.account-card.card-ready {
  background: rgba(48, 209, 88, 0.13) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
  box-shadow: 0 4px 20px rgba(48, 209, 88, 0.1);
}

.card-top { display: flex; align-items: center; justify-content: space-between; }
.account-identity { display: flex; align-items: center; gap: 8px; }
.account-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.account-info h2 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.account-info p { font-size: 0.7rem; color: var(--text-secondary); }

.status-badge { padding: 2px 7px; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.status-active { background: rgba(10, 132, 255, 0.3); color: #70b4ff; }
.status-ready { background: rgba(48, 209, 88, 0.25); color: #4eed78; }
.status-cooldown { background: rgba(255, 69, 58, 0.3); color: #ff7b72; }

.quotas-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.quota-box {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quota-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); }
.quota-value { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.quota-bar-track { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); overflow: hidden; }
.quota-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width var(--transition-smooth); }

.model-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-top: 3px;
}

.timers-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-sm);
}

.timer-item { display: flex; flex-direction: column; gap: 1px; }
.timer-label { font-size: 0.62rem; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; }
.timer-value { font-family: ui-monospace, monospace; font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }

.btn-mini {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 2px 1px;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-mini:hover { background: rgba(255, 255, 255, 0.2); }
.btn-mini-danger { background: rgba(255, 69, 58, 0.15); border-color: rgba(255, 69, 58, 0.3); color: #ff7b72; }
.btn-mini-danger:hover { background: rgba(255, 69, 58, 0.3); }
.btn-mini-success { background: rgba(48, 209, 88, 0.15); border-color: rgba(48, 209, 88, 0.3); color: #4eed78; }
.btn-mini-success:hover { background: rgba(48, 209, 88, 0.3); }

/* Bulletproof Flexbox Action Row (No Cutoffs or Hidden Buttons) */
.card-actions-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  width: 100%;
}

.btn-card-action {
  padding: 5px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.btn-card-action.btn-main-action {
  flex: 1;
  min-width: 70px;
}

.btn-card-action.btn-weekly-action {
  flex: 0 0 auto;
  padding: 5px 8px;
}

.btn-card-action.btn-icon-action {
  flex: 0 0 30px;
  width: 30px;
  height: 28px;
  padding: 0;
}
