* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, #1e2a3a, #0b0f17);
  color: #e0d5c0;
}

.landing-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.landing-content {
  width: 100%;
  max-width: 1300px;
  height: calc(100vh - 3rem);
  margin: 0 auto;
  background: rgba(18, 25, 35, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 150, 0.1);
  border-radius: 2.5rem;
  padding: 2rem 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.dragon-logo {
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.glow-text {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f9e0a0, #dbb87c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(218, 165, 50, 0.2);
  letter-spacing: 2px;
  line-height: 1.2;
}

.subtitle {
  display: block;
  color: #96a9bb;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.menu-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-shrink: 0;
  margin: 1.5rem 0;
}

.menu-card {
  flex: 1;
  max-width: 280px;
  background: rgba(28, 38, 51, 0.7);
  border: 2px solid #3f4b5b;
  border-radius: 2rem;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #e0d5c0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 0 #0a0f16;
  will-change: transform;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: #c9a758;
  box-shadow: 0 9px 0 #0a0f16;
}

.menu-card:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #0a0f16;
}

.menu-card.active {
  border-color: #c9a758;
  background: linear-gradient(145deg, #253241, #1a2533);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.menu-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.menu-card p {
  font-size: 0.95rem;
  color: #b6a68b;
}

.info-panel {
  background: rgba(10, 18, 28, 0.5);
  border-radius: 2rem;
  padding: 1.5rem;
  border: 1px solid #3f4b5b;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.info-panel h3 {
  font-size: 1.5rem;
  color: #f2d9b3;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.raid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  flex: 1;
}

.raid-list::-webkit-scrollbar {
  width: 4px;
}

.raid-list::-webkit-scrollbar-track {
  background: #0d151f;
  border-radius: 2px;
}

.raid-list::-webkit-scrollbar-thumb {
  background: #b48b4b;
  border-radius: 2px;
}

.raid-item {
  padding: 0.8rem 1.2rem;
  background: #17212b;
  border-radius: 1.5rem;
  border: 1px solid #3d4e5f;
  color: #f2d9b3;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.raid-number {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: #b48b4b;
  color: #11161f;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-weight: bold;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.raid-number.inactive {
  background: #4a535f;
  color: #b0b7c0;
}

.stamp-info {
  background: #0d151f;
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.info-badge {
  background: #b48b4b;
  color: #11161f;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  white-space: nowrap;
}

.fee-rules {
  flex: 1;
}

.fee-rules h4 {
  font-size: 1.1rem;
  color: #f2d9b3;
  margin-bottom: 0.3rem;
}

.fee-rules ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.fee-rules li {
  color: #b6a68b;
  position: relative;
  font-size: 0.95rem;
  padding-left: 1.2rem;
}

.fee-rules li:before {
  content: "◆";
  color: #c9a758;
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.calculator-container {
  width: 100%;
  height: 100vh;
  padding: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calculator-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(18, 25, 35, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 150, 0.1);
  border-radius: 2rem;
  flex-shrink: 0;
}

.nav-home {
  color: #dbb87c;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  background: #1a2533;
  border: 2px solid #3f4b5b;
  transition: all 0.2s ease;
}

.nav-home:hover {
  background: #253241;
  border-color: #c9a758;
}

.calculator-nav h2 {
  font-size: 1.5rem;
  color: #f2d9b3;
}

.calculator-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.create-party-btn {
  background: #b48b4b;
  border: none;
  border-radius: 2.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #11161f;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  box-shadow: 0 6px 0 #6b4f2b;
  transition: transform 0.07s linear, box-shadow 0.07s linear;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  align-self: flex-start;
}

.create-party-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #5a401f;
}

.create-party-btn span {
  font-size: 1.6rem;
}

.parties-list {
  background: rgba(18, 25, 35, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 1.5rem;
  border: 1px solid #3f4b5b;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.parties-list::-webkit-scrollbar {
  width: 6px;
}

.parties-list::-webkit-scrollbar-track {
  background: #0d151f;
  border-radius: 3px;
}

.parties-list::-webkit-scrollbar-thumb {
  background: #b48b4b;
  border-radius: 3px;
}

.empty-state {
  text-align: center;
  color: #5f6e7c;
  padding: 3rem;
  font-size: 1.1rem;
  font-style: italic;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  pointer-events: auto;
}

.modal-content {
  background: #1e2a3a;
  border-radius: 2rem;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 2px solid #5c533b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.2s ease;
  pointer-events: auto;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.modal-content * {
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
}

.modal-content input,
.modal-content select,
.modal-content button {
  -webkit-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-modal {
  max-width: 1000px;
}

.member-select-modal {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.8rem;
  border-bottom: 2px solid #3f4b5b;
  background: #1a2533;
  border-radius: 2rem 2rem 0 0;
  flex-shrink: 0;
  pointer-events: auto;
}

.modal-header h3 {
  color: #f2d9b3;
  font-size: 1.4rem;
}

.close-modal {
  background: none;
  border: none;
  color: #96a9bb;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f2d9b3;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 130px);
  pointer-events: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #0d151f;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #b48b4b;
  border-radius: 3px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.2rem 1.8rem;
  border-top: 2px solid #3f4b5b;
  background: #1a2533;
  border-radius: 0 0 2rem 2rem;
  flex-shrink: 0;
  pointer-events: auto;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: #b6a68b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #17212b;
  border: 2px solid #3d4e5f;
  border-radius: 1rem;
  color: #f2d9b3;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #c9a758;
  box-shadow: 0 0 0 2px rgba(201, 167, 88, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}

.sold-section {
  background: #0d151f;
  border-radius: 1.2rem;
  padding: 1.2rem;
  margin-top: 0.8rem;
}

.sold-section h4 {
  color: #dbb87c;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.cancel-btn,
.close-result-btn {
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  border: 2px solid #3f4b5b;
  background: transparent;
  color: #e0d5c0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.cancel-btn:hover,
.close-result-btn:hover {
  background: #253241;
  border-color: #c9a758;
}

.submit-btn {
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  background: #b48b4b;
  border: none;
  color: #11161f;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #6b4f2b;
  transition: transform 0.07s linear, box-shadow 0.07s linear;
  pointer-events: auto;
}

.submit-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6b4f2b;
}

.party-card {
  background: #17212b;
  border-radius: 1.5rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid #3d4e5f;
}

.party-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #3f4b5b;
  flex-wrap: wrap;
  gap: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.party-header:hover {
  background-color: rgba(255, 215, 150, 0.05);
}

.expand-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  color: #c9a758;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.party-name {
  font-size: 1.3rem;
  color: #f2d9b3;
  font-weight: bold;
}

.party-seller {
  color: #b48b4b;
  font-size: 1rem;
  background: #0d151f;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
}

.party-content {
  padding: 0.5rem 0 1rem 2rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.party-actions {
  display: flex;
  gap: 0.5rem;
}

.edit-party-btn,
.delete-party-btn {
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.edit-party-btn {
  background: #2c3a4e;
  color: #f2d9b3;
  border: 1px solid #3d4e5f;
}

.edit-party-btn:hover {
  background: #3d4e5f;
  border-color: #c9a758;
}

.delete-party-btn {
  background: #dc3545;
  color: white;
}

.delete-party-btn:hover {
  background: #c82333;
}

.items-list {
  margin: 0.8rem 0;
}

.item-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: #0d151f;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.item-sold {
  color: #b48b4b;
  font-weight: 500;
  white-space: nowrap;
}

.calculate-party {
  background: #b48b4b;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 1.5rem;
  color: #11161f;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0.8rem;
  box-shadow: 0 3px 0 #6b4f2b;
  transition: transform 0.07s linear, box-shadow 0.07s linear;
}

.calculate-party:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #6b4f2b;
}

.result-section {
  background: #0d151f;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #3d4e5f;
}

.section-title {
  border-bottom: 2px solid #c9a758;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.section-title h3 {
  color: #f2d9b3;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-detail {
  background: #0d151f;
  border-radius: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #2a3542;
  font-size: 1rem;
}

.result-total {
  font-size: 1.5rem;
  color: #f2d9b3;
  font-weight: bold;
}

.calculation-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #2a3542;
}

.calculation-row:last-child {
  border-bottom: none;
}

.detail-item {
  margin-bottom: 1rem;
}

.player-salaries {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.player-salary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: #1a2533;
  border-radius: 1rem;
  border: 1px solid #3d4e5f;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-name {
  color: #f2d9b3;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 150px;
}

.player-detail {
  flex: 1;
  text-align: right;
}

.player-base {
  color: #b6a68b;
  font-size: 0.95rem;
}

.player-bonus {
  color: #4CAF50;
  font-size: 0.95rem;
}

.player-extra {
  color: #ffa500;
  font-size: 0.95rem;
}

.player-fee {
  color: #ff6b6b;
  font-size: 0.95rem;
}

.player-total {
  color: #f2d9b3;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px dashed #3d4e5f;
}

.stamp-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stamp-user-item {
  background: #17212b;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid #c9a758;
  color: #f2d9b3;
}

.members-section {
  background: #0d151f;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #3d4e5f;
}

.members-section h4 {
  color: #f2d9b3;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.member-selector {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.member-selector label {
  color: #b6a68b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #17212b;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  cursor: pointer;
  min-height: 50px;
}

.member-display:hover {
  border-color: #c9a758;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.member-name {
  flex: 1;
  color: #f2d9b3;
}

.select-placeholder {
  color: #b6a68b;
  font-style: italic;
  padding: 0.5rem;
}

.remove-member {
  width: 24px;
  height: 24px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 0.3rem;
}

.remove-member:hover {
  background: #c82333;
}

.member-select-wrapper {
  width: 100%;
}

.selected-member-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #17212b;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  cursor: pointer;
  min-height: 50px;
}

.selected-member-display:hover {
  border-color: #c9a758;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: #17212b;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  color: #f2d9b3;
  font-size: 1rem;
  outline: none;
}

.search-box input:focus {
  border-color: #c9a758;
}

.members-table-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 1rem;
  background: #0d151f;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table th {
  position: sticky;
  top: 0;
  background: #1a2533;
  color: #f2d9b3;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #c9a758;
}

.members-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #2a3542;
  color: #e0d5c0;
  cursor: pointer;
}

.members-table tr:hover {
  background: #1a2533;
}

.table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.select-member-btn {
  background: #b48b4b;
  color: #11161f;
  border: none;
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-weight: bold;
  cursor: pointer;
}

.select-member-btn:hover {
  background: #c9a758;
}

.raid-card {
  background: #0d151f;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #3d4e5f;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h4 {
  color: #f2d9b3;
  font-size: 1.2rem;
}

.remove-raid-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.remove-raid-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

.item-card {
  background: #17212b;
  border-radius: 1rem;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #3d4e5f;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.item-header h5 {
  color: #f2d9b3;
  font-size: 1rem;
}

.remove-item-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-item-btn:hover {
  background: #c82333;
}

.add-item-btn {
  background: #2c3a4e;
  color: #f2d9b3;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  margin: 0.5rem 0;
  transition: all 0.15s ease;
}

.add-item-btn:hover {
  background: #3d4e5f;
  border-color: #c9a758;
}

.stamp-row {
  background: #1a2533;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid #3d4e5f;
}

.stamp-user-select {
  position: relative;
  cursor: pointer;
}

.stamp-user-select input {
  padding-right: 2rem;
  cursor: pointer;
  background: #17212b;
}

.stamp-user-select .select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b6a68b;
  pointer-events: none;
}

.stamp-user-select:hover input {
  border-color: #c9a758;
}

.stamp-user-select:hover .select-icon {
  color: #c9a758;
}

.add-stamp-btn {
  background: #2c3a4e;
  color: #f2d9b3;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  margin: 0.5rem 0;
  transition: all 0.15s ease;
}

.add-stamp-btn:hover {
  background: #3d4e5f;
  border-color: #c9a758;
}

.remove-stamp-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  width: 100%;
  transition: all 0.15s ease;
}

.remove-stamp-btn:hover {
  background: #c82333;
}

.add-raid-btn {
  background: #b48b4b;
  color: #11161f;
  border: none;
  border-radius: 2rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin: 0.5rem 0;
  box-shadow: 0 4px 0 #6b4f2b;
  transition: transform 0.07s linear, box-shadow 0.07s linear;
}

.add-raid-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6b4f2b;
}

.copy-discord-btn {
  background: #5865F2;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: auto;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #4752c4;
}

.copy-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3a44a0;
}

.copy-discord-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #3a44a0;
}

.modal-content.resizable {
  resize: none;
  overflow: hidden;
  min-width: 600px;
  min-height: 400px;
}

.modal-content.resizable .modal-body {
  max-height: calc(100% - 130px);
  overflow-y: auto;
  pointer-events: auto;
}

.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: se-resize;
  background: linear-gradient(135deg, transparent 50%, #b48b4b 50%);
  border-radius: 0 0 2rem 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  z-index: 1001;
  pointer-events: auto;
}

.resize-handle:hover {
  opacity: 1;
  background: linear-gradient(135deg, transparent 50%, #c9a758 50%);
}

@media screen and (max-width: 1200px) {
  .landing-content {
    padding: 2rem;
  }
  
  .glow-text {
    font-size: 3.5rem;
  }
  
  .menu-card {
    padding: 1.2rem;
  }
}

@media screen and (max-width: 992px) {
  .menu-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .menu-card {
    max-width: 400px;
    width: 100%;
  }
  
  .raid-list {
    grid-template-columns: 1fr;
  }
  
  .calculator-nav {
    flex-direction: column;
    text-align: center;
  }
  
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .landing-container {
    padding: 1rem;
  }
  
  .landing-content {
    padding: 1.5rem;
  }
  
  .glow-text {
    font-size: 2.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .menu-cards {
    margin: 1rem 0;
  }
  
  .info-panel {
    padding: 1rem;
  }
  
  .info-panel h3 {
    font-size: 1.3rem;
  }
  
  .calculator-container {
    padding: 1rem;
  }
  
  .calculator-nav {
    padding: 0.8rem 1rem;
  }
  
  .calculator-nav h2 {
    font-size: 1.2rem;
  }
  
  .create-party-btn {
    width: 100%;
    justify-content: center;
  }
  
  .party-header {
    flex-direction: column;
    text-align: center;
  }
  
  .party-actions {
    width: 100%;
    justify-content: center;
  }
  
  .item-entry {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .item-sold {
    white-space: normal;
  }
  
  .result-row {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  
  .player-salary-row {
    flex-direction: column;
    text-align: left;
  }
  
  .player-amount {
    text-align: left;
    width: 100%;
  }
  
  .members-table th:nth-child(3),
  .members-table td:nth-child(3) {
    display: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content.resizable {
    min-width: 90%;
    min-height: 300px;
  }
  
  .resize-handle {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
}

@media screen and (max-width: 576px) {
  .landing-content {
    padding: 1rem;
  }
  
  .glow-text {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .menu-card {
    padding: 1rem;
  }
  
  .menu-card h2 {
    font-size: 1.4rem;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .info-panel h3 {
    font-size: 1.2rem;
  }
  
  .raid-item {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .raid-number {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.9rem;
  }
  
  .info-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .fee-rules li {
    font-size: 0.85rem;
  }
  
  .calculator-nav h2 {
    font-size: 1rem;
  }
  
  .nav-home {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
  
  .modal-header {
    padding: 1rem 1.2rem;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 1rem 1.2rem;
  }
  
  .party-name {
    font-size: 1.2rem;
  }
  
  .result-total {
    font-size: 1.3rem;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .members-table th:nth-child(1),
  .members-table td:nth-child(1) {
    width: 50px;
  }
  
  .table-avatar {
    width: 30px;
    height: 30px;
  }
  
  .copy-discord-btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer button {
    width: 100%;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 95vh;
  }
  
  .modal-content.resizable {
    min-width: 95%;
    min-height: 250px;
  }
  
  .resize-handle {
    width: 35px;
    height: 35px;
    opacity: 0.8;
  }
}

@media screen and (max-width: 375px) {
  .glow-text {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
  }
  
  .menu-card h2 {
    font-size: 1.2rem;
  }
  
  .menu-card p {
    font-size: 0.85rem;
  }
  
  .info-panel h3 {
    font-size: 1.1rem;
  }
  
  .player-name {
    font-size: 1rem;
    min-width: auto;
  }
  
  .modal-content.resizable {
    min-width: 98%;
    min-height: 200px;
  }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
  .landing-content {
    height: calc(100vh - 2rem);
  }
  
  .glow-text {
    font-size: 2.5rem;
  }
  
  .menu-cards {
    margin: 0.8rem 0;
  }
  
  .info-panel {
    padding: 1rem;
  }
  
  .raid-list {
    max-height: 150px;
  }
  
  .modal-content {
    max-height: 98vh;
  }
  
  .modal-scroll {
    max-height: calc(98vh - 130px);
  }
  
  .members-table-container {
    max-height: 300px;
  }
  
  .modal-content.resizable {
    min-height: 180px;
  }
}

.admin-panel {
  background: #0d151f;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid #3f4b5b;
}

.admin-panel h4 {
  color: #f2d9b3;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-panel h4 span {
  color: #c9a758;
  font-size: 1.3rem;
}

.admin-badge {
  background: #c9a758;
  color: #11161f;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 0.5rem;
  display: inline-block;
}

.change-password-btn {
  width: 100%;
  padding: 1rem;
  background: #2c3a4e;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  color: #f2d9b3;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.change-password-btn:hover {
  background: #3d4e5f;
  border-color: #c9a758;
}

.change-all-btn {
  width: 100%;
  padding: 1rem;
  background: #b48b4b;
  border: none;
  border-radius: 2rem;
  color: #11161f;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #6b4f2b;
  transition: transform 0.07s linear, box-shadow 0.07s linear;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.change-all-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6b4f2b;
}

.user-change-panel {
  background: #0d151f;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid #3f4b5b;
}

.user-change-panel h4 {
  color: #f2d9b3;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-change-panel h4 span {
  color: #4CAF50;
  font-size: 1.3rem;
}

.user-change-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-info {
  background: #1a2533;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid #c9a758;
  transition: all 0.2s ease;
}

.user-info:hover {
  background: #253241;
  transform: translateX(5px);
}

.user-info p {
  margin: 0.2rem 0;
  color: #b6a68b;
}

.user-info strong {
  color: #f2d9b3;
  font-size: 1.1rem;
}

.admin-badge {
  background: #c9a758;
  color: #11161f;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 0.5rem;
  display: inline-block;
}

.admin-badge:last-child {
  background: #2c3a4e;
  color: #b6a68b;
}

#userList {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #0d151f;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

#userList::-webkit-scrollbar {
  width: 6px;
}

#userList::-webkit-scrollbar-track {
  background: #0d151f;
  border-radius: 3px;
}

#userList::-webkit-scrollbar-thumb {
  background: #b48b4b;
  border-radius: 3px;
}

.user-select {
  width: 100%;
  padding: 1rem;
  background: #17212b;
  border: 2px solid #3d4e5f;
  border-radius: 2rem;
  color: #f2d9b3;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

.user-select:focus {
  border-color: #c9a758;
}

.user-select option {
  background: #1e2a3a;
  color: #f2d9b3;
  padding: 1rem;
}

.user-select optgroup {
  background: #1a2533;
  color: #c9a758;
  font-weight: bold;
}

.user-info p {
  color: #b6a68b;
  margin: 0.3rem 0;
}

.user-info strong {
  color: #f2d9b3;
}

.password-strength {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.strength-weak {
  color: #dc3545;
}

.strength-medium {
  color: #ffc107;
}

.strength-strong {
  color: #28a745;
}

.warning-message {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #ff8a8a;
  font-size: 0.95rem;
  text-align: center;
}

.success-message {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #8bc34a;
  font-size: 0.95rem;
  text-align: center;
}