/* Google Auth & Developer / God Pen Styles */
.auth-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 4px;
  padding: 6px 14px !important;
  font: 500 13px 'Google Sans', Roboto, sans-serif !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.google-login-btn:hover {
  background: #f8f9fa !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.google-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 24, 18, 0.85) !important;
  border: 1px solid #d8b994aa !important;
  border-radius: 20px !important;
  padding: 4px 12px 4px 5px !important;
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-btn:hover {
  background: rgba(45, 36, 26, 0.95) !important;
  border-color: #ffdb9a !important;
}

.user-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffdb9a;
  background: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-weight: 500;
}

.user-name-text {
  font: 600 13px Oswald, sans-serif;
  letter-spacing: 0.5px;
  color: #fff0d4;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-badge-tag {
  background: linear-gradient(135deg, #d34730 0%, #7209b7 100%);
  color: #fff;
  font: 700 9px 'DM Mono', monospace;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 0 8px rgba(211, 71, 48, 0.6);
  animation: devBadgePulse 2.5s infinite;
}

@keyframes devBadgePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(211, 71, 48, 0.5); }
  50% { box-shadow: 0 0 14px rgba(114, 9, 183, 0.9), 0 0 8px rgba(255, 0, 85, 0.7); }
}

/* Auth Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 20, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Material Design Google Sign In Card */
.google-auth-card {
  width: min(450px, 94vw);
  background: #ffffff;
  border-radius: 8px;
  padding: 38px 36px 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  position: relative;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: #202124;
  text-align: left;
  animation: cardFadeIn 0.25s ease-out;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.google-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  color: #5f6368;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.google-modal-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.google-card-header {
  margin-bottom: 22px;
}

.google-logo-big {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.google-title {
  font-size: 22px;
  font-weight: 500;
  color: #202124;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.google-subtitle {
  font-size: 13.5px;
  color: #5f6368;
  margin: 0;
  line-height: 1.4;
}

/* Prominent Google OAuth Button */
.google-oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 6px;
  padding: 12px 16px;
  font: 500 14px 'Google Sans', Roboto, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.google-oauth-btn:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26,115,232,0.25);
  transform: translateY(-1px);
}

.google-icon-oauth {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #80868b;
  font: 11px 'Google Sans', sans-serif;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dadce0;
}

.auth-divider span {
  padding: 0 10px;
}

.google-form {
  display: flex;
  flex-direction: column;
}

.google-input-group {
  position: relative;
  margin-bottom: 14px;
}

.google-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Roboto', 'Google Sans', sans-serif;
  color: #202124;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.google-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

.google-label {
  position: absolute;
  left: 12px;
  top: 14px;
  font-size: 13px;
  color: #5f6368;
  background: #fff;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.18s ease;
}

.google-input:focus ~ .google-label,
.google-input:not(:placeholder-shown) ~ .google-label {
  top: -8px;
  font-size: 11px;
  color: #1a73e8;
  font-weight: 500;
}

.google-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.google-btn-text {
  background: none;
  border: 0;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.google-btn-text:hover {
  background: #f1f3f4;
}

.google-btn-primary {
  background: #1a73e8;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 10px 22px;
  font: 500 14px 'Google Sans', Roboto, sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60,64,67,0.3);
  transition: background 0.15s, box-shadow 0.15s;
}

.google-btn-primary:hover {
  background: #1557d0;
  box-shadow: 0 1px 3px rgba(60,64,67,0.4);
}

/* Client ID Settings */
.client-id-settings {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #dadce0;
}

.settings-hint {
  font-size: 12px;
  color: #5f6368;
  margin: 0 0 8px;
}

.client-id-form {
  display: flex;
  gap: 8px;
}

.client-id-input {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-family: monospace;
  border: 1px solid #dadce0;
  border-radius: 4px;
  outline: none;
}

.client-id-input:focus {
  border-color: #1a73e8;
}

.google-btn-save {
  background: #3c4043;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.google-btn-save:hover {
  background: #202124;
}

/* User Profile Modal */
.auth-panel {
  width: min(520px, 94vw);
  padding: 40px 38px 32px;
  text-align: center;
  position: relative;
}

.auth-panel h2 {
  font-size: 38px;
  margin: 2px 0 10px;
}

.profile-modal-card {
  text-align: center;
  padding: 10px 0;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid #d34730;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: #1a73e8;
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font: 700 24px Oswald, sans-serif;
  color: #203d86;
  margin: 0 0 4px;
}

.profile-email {
  font: 12px 'DM Mono', monospace;
  color: #6a7c9f;
  margin: 0 0 16px;
}

.profile-perks-list {
  background: #fffdf5;
  border: 1px solid #d8cba8;
  border-radius: 6px;
  padding: 14px;
  text-align: left;
  margin-bottom: 20px;
}

.profile-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 13px Kalam, cursive;
  color: #17366f;
  margin-bottom: 6px;
}

.profile-perk-item:last-child {
  margin-bottom: 0;
}

.profile-perk-item span.icon {
  font-size: 16px;
  color: #d34730;
}

.signout-btn {
  background: #475569;
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: 4px;
  font: 600 14px Oswald;
  cursor: pointer;
  transition: all 0.2s;
}

.signout-btn:hover {
  background: #334155;
}

/* GOD PEN SPECIAL STYLING */
.pen-card.god-tier {
  background: linear-gradient(145deg, #1b0918 0%, #2b0c20 50%, #0d0612 100%) !important;
  border: 2px solid #ff1744 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.4), inset 0 0 12px rgba(114, 9, 183, 0.5) !important;
  position: relative;
  overflow: hidden;
  animation: godCardGlow 3s infinite alternate;
}

@keyframes godCardGlow {
  0% {
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.35), inset 0 0 8px rgba(114, 9, 183, 0.3);
    border-color: #ff1744;
  }
  50% {
    box-shadow: 0 0 22px rgba(138, 43, 226, 0.7), 0 0 12px rgba(255, 0, 77, 0.6), inset 0 0 16px rgba(255, 0, 77, 0.4);
    border-color: #f72585;
  }
  100% {
    box-shadow: 0 0 18px rgba(255, 23, 68, 0.5), inset 0 0 12px rgba(114, 9, 183, 0.5);
    border-color: #ff1744;
  }
}

.pen-card.god-tier::before {
  content: '⚡ GOD TIER';
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(90deg, #d90429, #7209b7);
  color: #fff;
  font: 700 8px 'DM Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  z-index: 2;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.8);
}

.pen-card.god-tier b {
  color: #ffb4a2 !important;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
}

.pen-card.god-tier small {
  color: #e0aaff !important;
}

.pen-card.god-tier .stats {
  color: #ff758f !important;
}

.pen-card.god-tier .case-pen-stage {
  background: radial-gradient(ellipse at 50% 50%, #3a0d28 0%, #150519 100%) !important;
  border-color: #7209b7 !important;
}

.pen-card.god-tier .case-pen {
  filter: drop-shadow(0 0 8px #ff0055) drop-shadow(0 0 14px #7209b7) !important;
}
