* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(163, 49, 41, 0.9), rgba(0, 0, 0, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 400;
    animation: fadeIn 0.3s ease-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .popup-container {
    width: 90%;
    max-width: 350px;
    background: #ffe6c2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid #d4af37;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  @keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }

  .popup-header {
    background: linear-gradient(to right, #a33129, #cd5c5c);
    padding: 12px;
    text-align: center;
    position: relative;
  }

  .popup-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
  }

  .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .popup-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .purchase-options {
    width: 100%;
    text-align: center;
  }

  .option-description {
    font-size: 14px;
    color: #a33129;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  }

  .option-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .purchase-btn {
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .purchase-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .purchase-btn:hover:before {
    transform: translateX(100%);
  }

  .purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .purchase-btn.selected {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #ffd700, 0 6px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
  }

  .purchase-btn.selected:before {
    background: rgba(255, 255, 255, 0.2);
  }

  .purchase-btn .product-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
  }

  .purchase-btn .quota-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
  }

  .purchase-btn .price-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .purchase-btn .price {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  }

  .purchase-btn .original-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .loading-text {
    text-align: center;
    color: #a33129;
    font-size: 14px;
    padding: 20px;
  }

  .option-1 {
    background: linear-gradient(to right, #ff6b6b, #ffa502);
  }

  .option-2 {
    background: linear-gradient(to right, #a33129, #cd5c5c);
  }

  .option-3 {
    background: linear-gradient(to right, #4a235a, #8e44ad);
  }

  .option-4 {
    background: linear-gradient(to right, #e74c3c, #c0392b);
  }

  .action-buttons {
    width: 100%;
    display: flex;
    gap: 12px;
    margin-top: 20px;
  }

  .cancel-btn, .confirm-btn {
    flex: 1;
    border: none;
    border-radius: 24px;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .cancel-btn {
    background: linear-gradient(to right, #95a5a6, #7f8c8d);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .confirm-btn {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .confirm-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .cancel-btn:hover, .confirm-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .cancel-btn span, .confirm-btn span {
    pointer-events: none;
  }

  .hidden {
    display: none;
  }