/* =========================================================
   Double Move Chess - Online Play & Profile Styles
   Chess.com Dark Theme Aesthetic
   ========================================================= */

/* Header User Profile & Guest Actions */
.top-account-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #272522;
  border: 1px solid #3d3b38;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.top-user-pill:hover {
  background: #312e2b;
}

.top-user-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-badge-guest {
  font-size: 10px;
  background: #45423f;
  color: #c3c1be;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.btn-link-google-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #3b5998;
  background: linear-gradient(135deg, #4285F4 0%, #357ae8 100%);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-link-google-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-link-google-nav .g-icon {
  width: 14px;
  height: 14px;
}

/* Soft Guest Banner (after 3rd game) */
.guest-soft-banner {
  background: linear-gradient(90deg, #2a2825 0%, #1e2638 100%);
  border-bottom: 1px solid #3b4252;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  color: #e5e9f0;
}

.guest-soft-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-close-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}

/* Online Lobby View */
.online-lobby-view {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lobby-title-wrap h1 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.lobby-title-wrap p {
  color: #989795;
  font-size: 14px;
  margin: 4px 0 0 0;
}

/* Return to Game Banner */
.active-game-alert {
  background: #3d2f1f;
  border: 1px solid #c97924;
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fae1c3;
}

.btn-return-game {
  background: #e68a00;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-return-game:hover {
  background: #ff9900;
}

/* Matchmaking Card */
.lobby-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .lobby-main-grid {
    grid-template-columns: 1fr;
  }
}

.lobby-panel {
  background: #272522;
  border: 1px solid #3d3b38;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lobby-panel h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Time control selector */
.time-selector-row {
  display: flex;
  gap: 10px;
}

.time-btn-chip {
  flex: 1;
  background: #312e2b;
  border: 2px solid transparent;
  color: #e0dedc;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}

.time-btn-chip:hover {
  background: #3d3b38;
}

.time-btn-chip.active {
  background: #383531;
  border-color: #81b64c;
  color: #fff;
}

.time-btn-chip.disabled-chip {
  opacity: 0.45;
  cursor: not-allowed !important;
  background: #232220 !important;
  border: 1px dashed #4e4a46 !important;
  color: #7a7774 !important;
}

.time-btn-chip.disabled-chip:hover {
  background: #232220 !important;
  border-color: #4e4a46 !important;
}

.home-pill.disabled-pill {
  opacity: 0.45;
  cursor: not-allowed !important;
  border-style: dashed !important;
  color: #7a7774 !important;
}

/* Casual / Rated Toggle */
.rating-mode-toggle {
  display: flex;
  background: #1e1d1a;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.mode-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #989795;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-toggle-btn.active {
  background: #312e2b;
  color: #fff;
}

.mode-toggle-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rated-guest-hint {
  font-size: 12px;
  color: #d18a2a;
  background: rgba(209, 138, 42, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Play & Invite Big Buttons */
.btn-quick-play {
  background: #81b64c;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #537a28;
  transition: all 0.1s;
}

.btn-quick-play:hover {
  background: #90c855;
}

.btn-quick-play:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #537a28;
}

.btn-secondary-action {
  background: #363431;
  color: #e0dedc;
  border: 1px solid #45423f;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary-action:hover {
  background: #423f3b;
  color: #fff;
}

/* Queue Waiting State */
.queue-searching-box {
  background: #1e1d1a;
  border: 1px dashed #555;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.spinner-pulse {
  width: 40px;
  height: 40px;
  border: 4px solid #3d3b38;
  border-top-color: #81b64c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Invite Link Box */
.invite-link-wrap {
  display: flex;
  gap: 8px;
}

.invite-link-input {
  flex: 1;
  background: #1e1d1a;
  border: 1px solid #3d3b38;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}

/* Online Opponent Connection Indicator */
.conn-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #81b64c;
  margin-right: 6px;
}

.conn-indicator.disconnected {
  background: #e74c3c;
}

/* Online Draw Offer & Notification Banners */
.online-banner-notice {
  background: #312e2b;
  border: 1px solid #81b64c;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
}

/* =========================================================
   Chess.com 1-to-1 Style Online Play Workspace
   ========================================================= */
.online-play-view {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  width: 100%;
}

.online-board-column {
  flex: 0 0 580px;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chess-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.online-opponent-strip,
.online-user-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  min-height: 44px;
}

.player-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-cog-btn {
  background: transparent;
  border: none;
  color: #777;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.strip-cog-btn:hover {
  color: #c3c1be;
}

.online-sidebar-panel {
  flex: 0 0 380px;
  max-width: 400px;
  background: #262522;
  border: 1px solid #383531;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
}

/* 3 Tabs Header (New game, Games, Players) */
.online-tabs-header {
  display: flex;
  background: #21201d;
  border-bottom: 1px solid #383531;
}

.online-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #989795;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.online-tab-btn .tab-icon {
  font-size: 16px;
}

.online-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.online-tab-btn.active {
  color: #fff;
  background: #262522;
  border-bottom: 3px solid #81b64c;
}

/* Tab Contents */
.online-tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 18px 16px;
}

.online-tab-content.active {
  display: flex;
}

.online-new-game-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Time Button (Chess.com dropdown style) */
.chesscom-time-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #312e2b;
  border: 1px solid #3d3b38;
  color: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chesscom-time-btn:hover {
  background: #383531;
  border-color: #4a4744;
}

.chesscom-time-btn.expanded {
  background: #383531;
  border-color: #81b64c;
}

.time-clock-icon {
  font-size: 18px;
  color: #81b64c;
  margin-right: 8px;
}

.time-btn-text {
  flex: 1;
  text-align: left;
}

.time-arrow-icon {
  font-size: 12px;
  color: #888;
}

/* Big Green Start Button */
.chesscom-btn-start {
  width: 100%;
  background: #81b64c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #588232;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.1s ease;
  letter-spacing: 0.3px;
}

.chesscom-btn-start:hover {
  background: #8fc855;
}

.chesscom-btn-start:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #588232;
}

/* Secondary Button (Play with Friend) */
.chesscom-btn-subaction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #312e2b;
  border: 1px solid #3d3b38;
  color: #c3c1be;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chesscom-btn-subaction:hover {
  background: #383531;
  color: #fff;
  border-color: #4a4744;
}

.subaction-icon {
  font-size: 16px;
}

/* Time Picker Panel (Image 3) */
.online-time-picker-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.time-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #21201d;
  border: 1px solid #383531;
  border-radius: 8px;
  padding: 12px;
}

.time-cat-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-cat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c3c1be;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-icon {
  font-size: 14px;
}

.time-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.time-option-choice {
  background: #2b2825;
  border: 1px solid #3d3b38;
  color: #e5e9f0;
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-option-choice.active-choice {
  border: 2px solid #81b64c;
  background: #2e3a24;
  color: #81b64c;
}

.time-option-choice.disabled-choice {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
  color: #888;
}

/* Searching Container */
.online-searching-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 16px;
  text-align: center;
}

.online-searching-container h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.search-desc {
  margin: 0;
  color: #989795;
  font-size: 14px;
}

.search-elapsed {
  font-size: 32px;
  font-weight: 800;
  color: #81b64c;
  font-variant-numeric: tabular-nums;
}

.btn-cancel-search {
  background: #312e2b;
  border: 1px solid #4a4744;
  color: #c3c1be;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel-search:hover {
  background: #3d3b38;
  color: #fff;
}

/* Tab 2: Games Archive */
.games-tab-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.tab-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.games-tab-filter {
  display: flex;
  gap: 8px;
}

.game-filter-pill {
  flex: 1;
  background: #1e1d1a;
  border: 1px solid #383531;
  color: #989795;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-filter-pill.active {
  background: #383531;
  color: #fff;
  border-color: #4a4744;
}

.online-games-archive-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.archive-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #21201d;
  border: 1px solid #383531;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.archive-game-item:hover {
  background: #2b2825;
  border-color: #81b64c;
}

.archive-game-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-game-matchup {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.archive-game-meta {
  font-size: 11px;
  color: #888;
}

.archive-game-result-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  background: #312e2b;
  color: #fff;
}

.archive-game-result-badge.win {
  background: #2d5a1e;
  color: #81b64c;
}

.archive-game-result-badge.loss {
  background: #5a1e1e;
  color: #e74c3c;
}

/* Tab 3: Players (Image 4) */
.players-subtabs-row {
  display: flex;
  border-bottom: 1px solid #383531;
  margin-bottom: 10px;
}

.players-subtab-btn {
  flex: 1;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.players-subtab-btn.active {
  color: #fff;
  border-bottom: 2px solid #81b64c;
}

.players-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 8px;
  font-size: 12px;
  color: #666;
}

.players-search-input {
  width: 100%;
  background: #1e1d1a;
  border: 1px solid #383531;
  color: #fff;
  padding: 6px 10px 6px 28px;
  border-radius: 6px;
  font-size: 12px;
}

.players-search-input:focus {
  outline: none;
  border-color: #81b64c;
}

.players-status-select {
  background: #1e1d1a;
  border: 1px solid #383531;
  color: #aaa;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.online-players-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.online-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.online-player-card:hover {
  background: #2a2926;
}

.online-player-card .p-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-pawn-badge {
  font-size: 14px;
  color: #aaa;
}

.player-rank-diamond {
  font-size: 12px;
  color: #3498db;
}

.player-row-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.player-row-rating {
  font-size: 12px;
  color: #888;
}

.online-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.btn-challenge-player {
  background: #312e2b;
  border: 1px solid #4a4744;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-challenge-player:hover {
  background: #81b64c;
  border-color: #81b64c;
}

/* Footer stats bar (Image 1) */
.chesscom-online-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #21201d;
  border-top: 1px solid #383531;
  font-size: 12px;
  color: #989795;
}

.footer-chat-icon {
  font-size: 14px;
}

.footer-stat-text strong {
  color: #fff;
  font-weight: 800;
}

.footer-stat-sep {
  color: #555;

  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #fff;
  font-size: 14px;
}

.online-banner-notice .btn-group {
  display: flex;
  gap: 8px;
}

.btn-sm-accept {
  background: #81b64c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm-decline {
  background: #4a4744;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Profile Page */
.profile-view-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profile-header-card {
  background: #272522;
  border: 1px solid #3d3b38;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #81b64c;
}

.profile-info-block {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-username {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.profile-rating-badge {
  background: #312e2b;
  border: 1px solid #81b64c;
  color: #81b64c;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-metric-card {
  background: #21201d;
  border: 1px solid #3d3b38;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
}

.stat-metric-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.stat-metric-label {
  font-size: 12px;
  color: #989795;
  text-transform: uppercase;
}

/* History games list */
.profile-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-history-row {
  background: #272522;
  border: 1px solid #383531;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.game-history-row .result-tag {
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.game-history-row .result-tag.win {
  background: #81b64c;
  color: #fff;
}

.game-history-row .result-tag.loss {
  background: #e74c3c;
  color: #fff;
}

.game-history-row .result-tag.draw {
  background: #7f8c8d;
  color: #fff;
}

/* Leaderboard Table */
.leaderboard-view-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 25px 20px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: #272522;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3d3b38;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #383531;
}

.leaderboard-table th {
  background: #21201d;
  color: #989795;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.leaderboard-table tr:hover {
  background: #312e2b;
}

.leaderboard-table tr.current-user-row {
  background: rgba(129, 182, 76, 0.15);
  font-weight: 700;
}

/* Modal Overlay for Account Actions (Conflict Merge, Sign Out Warning, Rename) */
.dmc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dmc-modal-content {
  background: #272522;
  border: 1px solid #3d3b38;
  border-radius: 14px;
  padding: 25px;
  max-width: 440px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #e0dedc;
}

.dmc-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.dmc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Auth Modal: Login & Registration Styling (Chess.com Dark Aesthetic) */
.auth-modal-box {
  max-width: 420px;
  width: 92%;
  padding: 24px 28px;
  background: #262421;
  border: 1px solid #3c3934;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: #8c8985;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-modal-close:hover {
  color: #fff;
  background: #36322d;
}

.auth-tabs {
  display: flex;
  background: #1e1c19;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin: 10px 0 16px 0;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #9e9b97;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: #363430;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form-panel .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-panel .form-label {
  font-size: 12px;
  font-weight: 600;
  color: #bab7b2;
}

.auth-text-input {
  background: #1a1816;
  border: 1px solid #45423e;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-text-input:focus {
  border-color: #81b64c;
}

.btn-auth-submit {
  background: #81b64c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 0 #537731;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  background: #92c959;
}

.btn-auth-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #537731;
}

.auth-error-msg {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #ff7b72;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
}

.auth-guest-notice {
  font-size: 12px;
  color: #9e9b97;
  line-height: 1.4;
  background: #1e1c19;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid #81b64c;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6b6863;
  font-size: 12px;
  margin: 12px 0;
}

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

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

.btn-google-auth-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #312e2b;
  border: 1px solid #45423e;
  border-radius: 8px;
  color: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-google-auth-full:hover {
  background: #3b3834;
}

.btn-auth-nav {
  background: #81b64c;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-auth-nav:hover {
  background: #92c959;
}