* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0066CC;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.header {
  text-align: center;
  margin-bottom: 0;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header h1 {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.header h1.logo {
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  width: 100%;
}

.logo {
  cursor: pointer;
  transition: opacity 0.2s;
  display: block;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 300px;
  object-fit: contain;
}

.subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-bottom: 1rem;
}

.menu-item {
  color: #222;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.15rem 0.3rem;
  border-radius: 2px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  isolation: isolate;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 247, 0, 0.6);
  z-index: -1;
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}


.menu-item:hover::before {
  transform: translateX(100%);
}

.menu-divider {
  width: 1px;
  height: 12px;
  background: #ddd;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .header-menu {
    gap: 0.3rem;
  }
  
  .menu-item {
    font-size: 0.65rem;
    padding: 0.1rem 0.2rem;
  }
  
  .menu-divider {
    height: 10px;
  }
}

.principle-button {
  margin-top: 0;
  background: none;
  border: none;
  color: #666;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
  font-weight: normal;
}

.principle-button:hover {
  color: #333;
}

.principle-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.principle-popup {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

.principle-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.principle-popup-close:hover {
  color: #333;
}

.principle-popup-content {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.principle-popup-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.principle-popup-title {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.principle-popup-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin: 0.8rem 0 0.6rem;
}

.principle-popup-message {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.highlight-underline {
  background: linear-gradient(to top, rgba(255, 247, 0, 0.6) 40%, transparent 40%);
  padding: 0 2px;
}

.input-section {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-form {
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.url-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.url-input:focus {
  outline: none;
  border-color: #667eea;
}

.submit-button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.5);
  background: linear-gradient(135deg, #0099FF 0%, #0080FF 100%);
}

.submit-button:active {
  transform: translateY(0);
}

/* 오류 팝업 모달 */
.error-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s;
}

.error-popup {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-popup-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.error-popup-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.error-popup-icon {
  font-size: 3rem;
}

.error-popup-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.error-popup-title {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.error-popup-message {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.error-popup-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.error-popup-button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.error-popup-button:hover {
  background: #5568d3;
}

.error-popup-button-secondary {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.error-popup-button-secondary:hover {
  background: #667eea;
  color: white;
}

.error-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.error-popup-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* 최근 검색 */
.recent-searches {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

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

.recent-searches-header h3 {
  font-size: 1.25rem;
  color: #333;
  margin: 0;
}

.recent-searches-clear {
  font-size: 0.75rem;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.recent-searches-clear:hover {
  color: #333;
}

.recent-searches-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.recent-search-item {
  display: flex;
  padding: 1rem;
  background: white;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.recent-search-item:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.recent-search-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.recent-search-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.recent-search-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.recent-search-text {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-search-time {
  font-size: 0.75rem;
  color: #999;
}

/* 결과 영역 */
.results {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.results-subtitle {
  font-size: 1rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.results-subtitle.has-icon::before {
  content: '🔍';
  font-size: 1.2rem;
}

.url-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.url-item {
  padding: 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 60px;
}

.url-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  background: #f8f9ff;
}

.url-item.clicked {
  background: #fff9e6;
  border-color: #ffc107;
  opacity: 0.9;
}

.url-item.clicked:hover {
  background: #fff4cc;
  border-color: #ffc107;
}

.country-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

.country-name {
  font-size: 0.875rem;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}


/* 도움말 모달 */
.help-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.help-modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.help-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
}

.help-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.help-modal-close:hover {
  background-color: #f0f0f0;
}

.help-modal-content {
  padding: 1.5rem;
  position: relative;
}

/* 단계 인디케이터 */
.help-step-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.step-indicator {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-indicator.active {
  background: #0066CC;
  transform: scale(1.1);
}

.step-indicator .step-icon {
  font-size: 1.5rem;
}

/* 단계 콘텐츠 */
.help-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.help-step.active {
  display: block;
}

.help-step-title {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.help-step-title br,
.help-step-description br,
.tip-text br {
  display: none;
}

.help-step-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.help-step-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  color: #999;
  font-size: 0.9rem;
  text-align: center;
}

.help-step-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 팁 박스 */
.help-step-tip {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tip-text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 네비게이션 */
.help-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.help-nav-button {
  background: #f0f0f0;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.help-nav-button:hover:not(:disabled) {
  background: #e0e0e0;
}

.help-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.help-nav-button-primary {
  background: #0066CC;
  color: white;
}

.help-nav-button-primary:hover:not(:disabled) {
  background: #0052a3;
}

.help-page-indicator {
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

/* 할인코드 팝업 */
.discount-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s;
}

.discount-modal {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.discount-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.discount-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
}

.discount-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.discount-modal-close:hover {
  background-color: #f0f0f0;
}

.discount-modal-content {
  padding: 1.5rem;
}

.discount-intro {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Tip Box */
.discount-tip-box {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.discount-tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.discount-tip-content {
  flex: 1;
}

.discount-tip-title {
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.discount-tip-description {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 로딩 효과 */
.discount-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 200px;
}

.discount-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066CC;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.discount-loading-text {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.discount-results {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.discount-results-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.discount-results-count {
  color: #666;
  font-size: 0.875rem;
}

.discount-result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
  border: 1px solid #e0e0e0;
}

.discount-result-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.discount-result-item:last-child {
  margin-bottom: 0;
}

.discount-result-left {
  display: flex;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.discount-favicon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-favicon img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.discount-result-info {
  flex: 1;
  min-width: 0;
}

.discount-result-title {
  color: #1a0dab;
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.discount-result-title:hover {
  text-decoration: underline;
}

.discount-result-title:visited {
  color: #609;
}

.discount-result-url {
  color: #006621;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.discount-result-description {
  color: #545454;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.discount-result-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1rem;
  min-width: 120px;
}

.discount-update-bar {
  width: 100px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.discount-update-indicator {
  height: 100%;
  background: linear-gradient(90deg, #4285f4 0%, #34a853 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.discount-discount-rate {
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* 할인코드 제보 섹션 */
.discount-report-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.discount-report-title {
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.discount-report-button {
  background: #0066CC;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 0.75rem;
}

.discount-report-button:hover {
  background: #0052a3;
}

.discount-report-description {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .error-popup {
    max-width: 90%;
  }

  .error-popup-content {
    padding: 1.5rem;
  }

  .error-popup-icon {
    font-size: 2.5rem;
  }

  .error-popup-title {
    font-size: 1.1rem;
  }

  .error-popup-message {
    font-size: 0.9rem;
  }

  .error-popup-actions {
    flex-direction: column;
  }

  .error-popup-button,
  .error-popup-button-secondary {
    width: 100%;
  }

  .help-modal {
    max-width: 95%;
    max-height: 95vh;
  }

  .help-modal-content {
    padding: 1rem;
  }

  .help-step-indicators {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .step-indicator {
    width: 40px;
    height: 40px;
  }

  .step-indicator .step-icon {
    font-size: 1.2rem;
  }

  .help-step-title {
    font-size: 1.1rem;
  }

  .help-step-title br,
  .help-step-description br,
  .tip-text br {
    display: inline;
  }

  .help-step-description {
    font-size: 0.9rem;
  }

  .help-step-image {
    min-height: 200px;
  }

  .help-step-tip {
    padding: 0.75rem 1rem;
  }

  .tip-text {
    font-size: 0.85rem;
  }

  .help-navigation {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .help-nav-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .help-page-indicator {
    font-size: 0.9rem;
  }

  .discount-modal {
    max-width: 95%;
    max-height: 95vh;
  }

  .discount-modal-content {
    padding: 1rem;
  }

  .discount-result-item {
    flex-direction: column;
    gap: 1rem;
  }

  .discount-result-left {
    width: 100%;
  }

  .discount-result-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 0;
    min-width: auto;
  }

  .discount-update-bar {
    width: 80px;
  }

  .discount-result-title {
    font-size: 1.1rem;
  }

  .discount-result-description {
    font-size: 0.8rem;
  }

  .discount-tip-box {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }

  .discount-tip-title {
    font-size: 0.9rem;
  }

  .discount-tip-description {
    font-size: 0.8rem;
  }

  .discount-loading {
    min-height: 150px;
    padding: 2rem 1rem;
  }

  .discount-report-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .discount-report-title {
    font-size: 0.9rem;
  }

  .discount-report-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .discount-report-description {
    font-size: 0.8rem;
  }

  .container {
    padding: 1.5rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header-menu {
    gap: 0.3rem;
    justify-content: center;
  }

  .menu-item {
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    padding: 0.1rem clamp(0.15rem, 1.5vw, 0.2rem);
  }

  .menu-divider {
    height: 10px;
  }

  .input-group {
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }

  .url-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .url-item {
    padding: 0.75rem;
    min-height: 50px;
    gap: 0.4rem;
  }

  .country-flag {
    width: 18px;
    height: 13px;
    border-radius: 3px;
  }

  .country-name {
    font-size: 0.75rem;
  }

  .recent-searches-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .recent-search-item {
    padding: 0.75rem;
  }

  .recent-search-icon {
    font-size: 1.1rem;
  }

  .recent-search-text {
    font-size: 0.85rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .recent-search-time {
    font-size: 0.7rem;
  }

  .input-section,
  .results,
  .header {
    padding: 1.5rem;
  }
}

