.store-container {
  background: var(--dark-gray);
  min-height: 100vh;
  color: var(--white);
  font-family: var(--font-family-base);
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

// Store Header
.store-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);

  .store-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
  }

  .store-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
  }
}

// Stats Section
.store-stats {
  margin-bottom: var(--spacing-xl);

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);

    // Prevent overflow on small screens
    @media (max-width: var(--breakpoint-lg)) {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--spacing-sm);
    }

    @media (max-width: var(--breakpoint-sm)) {
      grid-template-columns: 1fr;
      gap: var(--spacing-sm);
    }
  }

  .stat-card {
    background: var(--dark-gray-lighter);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
    min-width: 0; // Ensure content doesn't overflow

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--box-shadow-md);
      border-color: var(--primary-color);
    }

    .stat-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--border-radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      font-size: 1.2rem;
      flex-shrink: 0;

      &.vip {
        background: linear-gradient(135deg, #e91e63 0%, #f48fb1 100%);
      }

      &.money {
        background: linear-gradient(135deg, var(--success) 0%, var(--success) 100%);
      }

      &.job {
        background: linear-gradient(135deg, var(--info) 0%, var(--info) 100%);
      }

      &.total {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
      }
    }

    .stat-content {
      min-width: 0; // Allow text to wrap/ellipsis
      
      h3 {
        color: var(--white);
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        font-weight: 700;
        margin: 0 0 0.25rem 0;
        word-break: break-word;
      }

      p {
        color: var(--light-gray);
        margin: 0;
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        word-break: break-word;
      }
    }
  }
}

/* Terms of Service Checkbox Styles */
.store-checkout-terms {
  margin-bottom: var(--spacing-lg);
  background: var(--dark-gray-lightest);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-md);
}

.terms-acceptance {
  position: relative;
}

.terms-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.terms-checkbox-container input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.terms-checkbox-container input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.terms-checkbox-container label {
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
}

.terms-checkbox-container label a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

.terms-checkbox-container label a:hover {
  text-decoration: underline;
}

.terms-error {
  margin-top: var(--spacing-xs);
  color: var(--danger);
  font-size: 0.85rem;
  display: none;
}

.terms-confirmation {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  color: var(--success);
  font-size: 0.85rem;
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Terms of Service Page Styles */
.store-tos {
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  color: var(--white);
}

.store-tos-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.store-tos-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.store-tos-header .last-updated {
  color: var(--light-gray);
  font-size: 0.9rem;
  font-style: italic;
}

.store-tos-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--dark-gray);
}

.store-tos-content::-webkit-scrollbar {
  width: 8px;
}

.store-tos-content::-webkit-scrollbar-track {
  background: var(--dark-gray);
  border-radius: 10px;
}

.store-tos-content::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.tos-section {
  margin-bottom: var(--spacing-lg);
}

.tos-section h2 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.tos-section p {
  color: var(--light-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.tos-section ul {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.tos-section ul li {
  color: var(--light-gray);
  margin-bottom: var(--spacing-xs);
  line-height: 1.5;
}

.tos-section .contact-info {
  font-weight: 600;
  color: var(--primary-color);
}

.store-tos-footer {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.tos-actions {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.tos-actions .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.tos-back {
  text-align: center;
}

.tos-back .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition-base);
}

.tos-back .back-link:hover {
  color: var(--white);
}

/* Print styles for TOS */
@media print {
  .store-container {
    background: white;
    color: black;
    padding: 0;
  }
  
  .store-tos {
    background: white;
    color: black;
    box-shadow: none;
    padding: 0;
  }
  
  .store-tos-header h1 {
    color: black;
  }
  
  .store-tos-header .last-updated {
    color: #555;
  }
  
  .tos-section h2 {
    color: black;
  }
  
  .tos-section p, .tos-section ul li {
    color: #333;
  }
  
  .store-tos-footer {
    display: none;
  }
}

/* Responsive styles for TOS */
@media (max-width: var(--breakpoint-md)) {
  .store-tos {
    padding: var(--spacing-lg);
  }
  
  .store-tos-header h1 {
    font-size: 2rem;
  }
  
  .tos-section h2 {
    font-size: 1.3rem;
  }
}

// Controls Section
.store-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--spacing-lg);
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md);
  background: var(--dark-gray-lighter);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);

  @media (max-width: var(--breakpoint-lg)) {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
  }

  .controls-left {
    .server-selector {
      display: flex;
      align-items: center;
      gap: var(--spacing-sm);

      label {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        color: var(--white);
        font-weight: 600;
        font-size: 0.9rem;

        i {
          color: var(--primary-color);
        }
      }

      .server-select {
        background: var(--dark-gray);
        border: 1px solid var(--dark-gray-lightest);
        color: var(--white);
        padding: 0.5rem 0.75rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;
        min-width: 180px;
        transition: var(--transition-base);

        &:focus {
          outline: none;
          border-color: var(--primary-color);
          box-shadow: 0 0 0 3px rgba(75, 139, 255, 0.2);
        }

        option {
          background-color: var(--dark-gray);
          color: var(--white);
        }
      }
    }
  }

  .controls-center {
    .search-bar {
      position: relative;
      max-width: 400px;
      margin: 0 auto;

      @media (max-width: var(--breakpoint-lg)) {
        max-width: 100%;
      }

      .search-icon {
        position: absolute;
        left: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        color: var(--light-gray);
        z-index: 2;
      }

      .search-input {
        width: 100%;
        padding: 0.5rem 1rem 0.5rem 2.5rem;
        background: var(--dark-gray);
        border: 1px solid var(--dark-gray-lightest);
        border-radius: 20px;
        color: var(--white);
        font-size: 0.9rem;
        transition: var(--transition-base);

        &:focus {
          outline: none;
          border-color: var(--primary-color);
          box-shadow: 0 0 0 3px rgba(75, 139, 255, 0.2);
        }

        &::placeholder {
          color: var(--light-gray);
        }
      }
    }
  }

  .controls-right {
    .category-filter {
      .filter-tabs {
        display: flex;
        gap: 0.25rem;
        background: var(--dark-gray);
        padding: 0.25rem;
        border-radius: var(--border-radius-sm);
        border: 1px solid var(--dark-gray-lightest);

        @media (max-width: var(--breakpoint-md)) {
          flex-wrap: nowrap;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
          padding-bottom: var(--spacing-xs);
          scrollbar-width: none;
          -ms-overflow-style: none;

          &::-webkit-scrollbar {
            display: none;
          }
        }

        .filter-tab {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          background: none;
          border: none;
          color: var(--light-gray);
          padding: 0.4rem 0.6rem;
          border-radius: 4px;
          font-weight: 500;
          font-size: 0.85rem;
          cursor: pointer;
          transition: var(--transition-base);
          white-space: nowrap;

          &:hover {
            background: var(--dark-gray-lightest);
            color: var(--white);
          }

          &.active {
            background: var(--primary-color);
            color: var(--white);
            box-shadow: 0 2px 8px rgba(75, 139, 255, 0.3);
          }

          .count {
            background: rgba(255, 255, 255, 0.1);
            color: inherit;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 600;
          }

          &.active .count {
            background: rgba(255, 255, 255, 0.2);
          }
        }
      }
    }
  }
}

// Packages Grid
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);

  @media (max-width: var(--breakpoint-md)) {
    gap: var(--spacing-md);
  }

  @media (max-width: var(--breakpoint-sm)) {
    gap: var(--spacing-sm);
    grid-template-columns: 1fr;
  }
}

// Package Card
.package-card {
  position: relative;
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;

  &:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
  }

  .package-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;

    // Overlay gradient
    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 50%;
      background: linear-gradient(
        to top,
        var(--dark-gray-lighter),
        transparent
      );
    }
  }

  .package-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;

    &.vip {
      background: rgba(233, 30, 99, 0.8);
    }

    &.money {
      background: rgba(76, 217, 100, 0.8);
    }

    &.job {
      background: rgba(90, 200, 250, 0.8);
    }
  }

  .package-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--warning);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
  }

  .package-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .package-header {
    margin-bottom: var(--spacing-md);

    .package-title {
      color: var(--white);
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      overflow-wrap: break-word;
      word-wrap: break-word;
      hyphens: auto;
    }

    .package-price {
      color: var(--primary-color);
      font-weight: 700;
      font-size: 1.5rem;
    }
  }

  .package-features {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;

    ul {
      list-style: none;
      padding: 0;
      margin: 0;

      li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--light-gray);
        font-size: 0.9rem;

        &:before {
          content: "✓";
          color: var(--success);
          position: absolute;
          left: 0;
          top: 0;
        }
      }
    }

    .feature-more {
      color: var(--light-gray);
      font-size: 0.8rem;
      font-style: italic;
      margin-top: 0.5rem;
      padding-left: 1.5rem;
    }
  }

  .package-actions {
    margin-top: auto;

    .btn-view {
      display: block;
      width: 100%;
      background: var(--primary-color);
      color: var(--white);
      border: none;
      border-radius: var(--border-radius-sm);
      padding: 0.75rem 1rem;
      font-weight: 600;
      text-align: center;
      text-decoration: none;
      transition: var(--transition-base);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;

      &:hover {
        background: var(--primary-dark);
      }

      i {
        transition: transform 0.3s ease;
      }

      &:hover i {
        transform: translateX(4px);
      }
    }
  }

  // Variations
  &.vip {
    border: 1px solid rgba(233, 30, 99, 0.2);

    &:hover {
      border-color: #e91e63;
    }

    .package-header .package-price {
      color: #e91e63;
    }

    .package-actions .btn-view {
      background: #e91e63;

      &:hover {
        background: darken(#e91e63, 10%);
      }
    }
  }

  &.elite-vip {
    border: 1px solid rgba(255, 193, 7, 0.2);

    &:hover {
      border-color: #ffc107;
    }

    .package-header .package-price {
      color: #ffc107;
    }

    .package-actions .btn-view {
      background: #ffc107;
      color: #000;

      &:hover {
        background: darken(#ffc107, 10%);
      }
    }
  }

  &.money {
    border: 1px solid rgba(76, 217, 100, 0.2);

    &:hover {
      border-color: var(--success);
    }

    .package-header .package-price {
      color: var(--success);
    }

    .package-actions .btn-view {
      background: var(--success);

      &:hover {
        background: var(--success);
      }
    }
  }

  &.job {
    border: 1px solid rgba(90, 200, 250, 0.2);

    &:hover {
      border-color: var(--info);
    }

    .package-header .package-price {
      color: var(--info);
    }

    .package-actions .btn-view {
      background: var(--info);

      &:hover {
        background: var(--info);
      }
    }
  }
}

// Empty State
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  background: var(--dark-gray-lighter);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  margin: 0 auto;

  .empty-icon {
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;

    i {
      font-size: 3rem;
      color: var(--light-gray);
    }
  }

  h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }

  p {
    color: var(--light-gray);
    font-size: 1rem;
    margin: 0;
    max-width: 400px;
  }
}

// Server Selection Styles
.server-selection-section {
  padding: var(--spacing-lg) 0;

  .section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);

    h2 {
      color: var(--white);
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: var(--spacing-md);
    }

    p {
      color: var(--light-gray);
      font-size: 1.1rem;
      max-width: 600px;
      margin: 0 auto;
    }
  }

  .servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);

    @media (max-width: var(--breakpoint-md)) {
      grid-template-columns: 1fr;
    }
  }

  .server-card {
    background: var(--dark-gray-lighter);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
    height: 100%;

    &:hover {
      transform: translateY(-5px);
      box-shadow: var(--box-shadow-lg);
      border-color: var(--primary-color);
    }

    .server-icon {
      width: 50px;
      height: 50px;
      background: var(--primary-color);
      border-radius: var(--border-radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      font-size: 1.25rem;
      margin-bottom: var(--spacing-md);
    }

    .server-info {
      margin-bottom: var(--spacing-lg);

      h3 {
        color: var(--white);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: var(--spacing-sm);
      }

      p {
        color: var(--light-gray);
        line-height: 1.6;
        margin-bottom: var(--spacing-md);
      }

      .server-stats {
        display: flex;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-sm);

        .stat {
          display: flex;
          align-items: center;
          gap: var(--spacing-xs);
          color: var(--lighter-gray);
          font-size: 0.9rem;

          i {
            color: var(--primary-color);
          }
        }
      }

      .server-badge {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-xs);
        background: var(--warning);
        color: #000;
        padding: 0.4rem 0.6rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
      }
    }

    .server-actions {
      .btn-select-server {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xs);
        width: 100%;
        padding: 0.75rem;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: var(--border-radius-sm);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition-base);

        &:hover {
          background: var(--primary-dark);
        }

        i {
          transition: transform 0.3s ease;
        }

        &:hover i {
          transform: translateX(4px);
        }
      }
    }
  }

  .browse-all-section {
    .browse-all-card {
      background: var(--dark-gray-lighter);
      border-radius: var(--border-radius-md);
      padding: var(--spacing-lg);
      border: 1px dashed var(--primary-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: var(--transition-base);

      &:hover {
        background: var(--dark-gray-lightest);
      }

      .browse-all-content {
        h3 {
          color: var(--white);
          font-size: 1.3rem;
          font-weight: 600;
          margin-bottom: var(--spacing-xs);
        }

        p {
          color: var(--light-gray);
          margin: 0;
        }
      }

      .btn-browse-all {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        padding: 0.75rem var(--spacing-md);
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        border-radius: var(--border-radius-sm);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition-base);
        white-space: nowrap;

        &:hover {
          background: var(--primary-color);
          color: var(--white);
        }
      }

      @media (max-width: var(--breakpoint-md)) {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
      }
    }
  }
}

// Package Detail Page
.store-package-detail {
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);

  .store-package-detail-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;

    .store-package-badge {
      position: absolute;
      top: var(--spacing-md);
      right: var(--spacing-md);
      background: var(--warning);
      color: #000;
      padding: 0.5rem var(--spacing-md);
      border-radius: var(--border-radius-sm);
      font-size: 0.9rem;
      font-weight: 600;
      z-index: 2;
    }
  }

  .store-package-detail-content {
    padding: var(--spacing-xl);

    .package-server-info {
      margin-bottom: var(--spacing-md);

      .server-badge {
        display: inline-block;
        background: var(--primary-color);
        color: var(--white);
        padding: 0.5rem var(--spacing-md);
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;
        font-weight: 600;
      }
    }

    .store-package-detail-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: var(--spacing-lg);

      h1 {
        color: var(--white);
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0;
      }

      .price {
        color: var(--primary-color);
        font-size: 2rem;
        font-weight: 700;
      }

      @media (max-width: var(--breakpoint-md)) {
        flex-direction: column;
        gap: var(--spacing-sm);

        h1 {
          font-size: 2rem;
        }

        .price {
          font-size: 1.5rem;
        }
      }
    }

    .store-package-detail-description {
      margin-bottom: var(--spacing-lg);

      p {
        color: var(--light-gray);
        font-size: 1rem;
        line-height: 1.6;
      }
    }

    .store-package-detail-features {
      margin-bottom: var(--spacing-xl);

      h3 {
        color: var(--white);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: var(--spacing-md);
      }

      ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);

        li {
          position: relative;
          padding-left: 1.75rem;
          color: var(--light-gray);
          font-size: 1rem;
          line-height: 1.5;

          .check-icon {
            color: var(--success);
            position: absolute;
            left: 0;
            top: 0.25rem;
          }
        }

        @media (max-width: var(--breakpoint-sm)) {
          grid-template-columns: 1fr;
        }
      }
    }

    .store-package-detail-actions {
      .btn-purchase {
        display: inline-block;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: var(--border-radius-sm);
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition-base);

        &:hover {
          background: var(--primary-dark);
        }
      }

      .login-required {
        background: var(--dark-gray-lightest);
        border-radius: var(--border-radius-sm);
        padding: var(--spacing-md);
        text-align: center;

        p {
          color: var(--light-gray);
          margin-bottom: var(--spacing-md);
        }

        .btn-login {
          display: inline-block;
          background: var(--steam-color);
          color: var(--white);
          border: none;
          border-radius: var(--border-radius-sm);
          padding: 0.75rem 2rem;
          font-weight: 600;
          text-decoration: none;
          transition: var(--transition-base);

          &:hover {
            background: var(--steam-color);
          }
        }
      }
    }
  }

  .store-package-detail-footer {
    background: var(--dark-gray);
    padding: var(--spacing-md) var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    .btn-back {
      display: inline-flex;
      align-items: center;
      gap: var(--spacing-xs);
      color: var(--light-gray);
      text-decoration: none;
      transition: var(--transition-base);

      &:hover {
        color: var(--white);
      }
    }
  }
}

// Checkout Styles (Continued - see full file for complete checkout, success, history styles)
// Due to length, only key mobile fixes shown here

// Copy notification
#copy-notification,
.copy-notification {
  position: fixed;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-gray-lightest);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-md);
  transition: bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  
  svg {
    color: var(--success);
  }
  
  &.show {
    bottom: 20px;
  }
}

// Animations
@keyframes backgroundFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(2deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-2deg);
  }
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

// Touch-friendly improvements for mobile
@media (max-width: var(--breakpoint-md)) {
  .btn,
  button,
  .page-link,
  .nav-link,
  .dropdown-item,
  .btn-view,
  .btn-purchase {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  // Larger form inputs
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    min-height: 44px;
    font-size: 16px; // Prevents zoom on iOS
  }
}

// Accessibility improvements
.btn:focus,
.btn-view:focus,
.btn-purchase:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(75, 139, 255, 0.2);
}

// Text overflow prevention
.package-card,
.server-card,
.stat-card {
  min-width: 0;
  
  h3, h4, p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

// Table responsiveness
.table-responsive {
  @media (max-width: var(--breakpoint-md)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    
    table {
      min-width: 600px;
    }
  }
}

// Container padding adjustments
.container {
  @media (max-width: var(--breakpoint-md)) {
    padding: 0 var(--spacing-md);
  }

  @media (max-width: var(--breakpoint-sm)) {
    padding: 0 var(--spacing-sm);
  }
}

// Checkout Styles
.store-checkout {
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--box-shadow-md);

  .store-checkout-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);

    h2 {
      color: var(--white);
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: var(--spacing-sm);
    }
  }

  .store-checkout-summary {
    background: var(--dark-gray-lightest);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);

    .package-name {
      font-size: 1.25rem;
      color: var(--white);
      font-weight: 600;
      margin-bottom: var(--spacing-sm);
    }

    .package-price {
      font-size: 1.5rem;
      color: var(--primary-color);
      font-weight: 700;
      margin-bottom: var(--spacing-sm);
      display: flex;
      align-items: center;
      gap: var(--spacing-md);

      .original-price {
        text-decoration: line-through;
        color: var(--light-gray);
        font-size: 1.1rem;
      }
    }

    .package-discount {
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
      margin-bottom: var(--spacing-sm);

      .coupon-badge {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-xs);
        background-color: rgba(255, 193, 7, 0.2);
        color: var(--warning);
        padding: 0.25rem 0.5rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.85rem;
        font-weight: 600;
      }

      .discount-amount {
        color: var(--success);
        font-weight: 600;
      }

      .btn-remove-coupon {
        background: none;
        border: none;
        color: var(--light-gray);
        cursor: pointer;
        padding: 0;
        transition: var(--transition-base);

        &:hover {
          color: var(--danger);
        }
      }
    }

    .coupon-form {
      margin: var(--spacing-sm) 0;

      .coupon-input-group {
        display: flex;
        gap: var(--spacing-xs);
      }

      .coupon-input {
        flex-grow: 1;
        background: var(--dark-gray);
        border: 1px solid var(--dark-gray-lighter);
        color: var(--white);
        padding: 0.5rem var(--spacing-sm);
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;

        &:focus {
          outline: none;
          border-color: var(--primary-color);
        }

        &::placeholder {
          color: var(--light-gray);
        }
      }

      .btn-apply-coupon {
        background: var(--dark-gray);
        border: 1px solid var(--dark-gray-lighter);
        color: var(--white);
        padding: 0.5rem var(--spacing-md);
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--transition-base);

        &:hover {
          background: var(--dark-gray-lightest);
        }
      }

      .coupon-message {
        margin-top: var(--spacing-xs);
        font-size: 0.85rem;
        display: none;

        &.success {
          color: var(--success);
        }

        &.error {
          color: var(--danger);
        }
      }
    }

    .package-description {
      color: var(--light-gray);
      margin-top: var(--spacing-sm);
      padding-top: var(--spacing-sm);
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 0.9rem;
    }
  }

  .store-checkout-features {
    margin-bottom: var(--spacing-lg);

    h3 {
      color: var(--white);
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: var(--spacing-sm);
    }

    ul {
      list-style: none;
      padding: 0;
      margin: 0;

      li {
        display: flex;
        align-items: flex-start;
        margin-bottom: var(--spacing-xs);
        color: var(--light-gray);
        font-size: 0.9rem;

        .check-icon {
          color: var(--success);
          margin-right: var(--spacing-sm);
          flex-shrink: 0;
        }
      }
    }
  }

  .store-checkout-user {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--dark-gray-lightest);
    border-radius: var(--border-radius-sm);

    h3 {
      color: var(--white);
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: var(--spacing-sm);
    }

    .user-info {
      p {
        color: var(--light-gray);
        margin-bottom: var(--spacing-xs);
        font-size: 0.9rem;

        &:last-child {
          margin-bottom: 0;
        }

        strong {
          color: var(--white);
        }
      }
    }
  }

  .store-checkout-payment {
    margin-bottom: var(--spacing-lg);

    h3 {
      color: var(--white);
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: var(--spacing-sm);
    }

    .payment-methods {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--spacing-md);

      @media (max-width: var(--breakpoint-sm)) {
        grid-template-columns: 1fr;
      }

      .payment-method-card {
        background: var(--dark-gray-lightest);
        border-radius: var(--border-radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: var(--spacing-sm);
        transition: var(--transition-base);
        cursor: pointer;

        &:hover {
          border-color: var(--primary-color);
        }

        &.selected {
          border-color: var(--primary-color);
          background: rgba(75, 139, 255, 0.1);
        }

        input[type="radio"] {
          display: none;
        }

        .payment-method-label {
          cursor: pointer;
          display: block;
          width: 100%;

          .payment-method-content {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);

            .payment-icon {
              color: var(--white);
              opacity: 0.7;
            }

            .payment-method-info {
              h4 {
                color: var(--white);
                font-size: 1rem;
                font-weight: 600;
                margin: 0 0 var(--spacing-xs) 0;
              }

              p {
                color: var(--light-gray);
                font-size: 0.8rem;
                margin: 0;
              }
            }
          }
        }
      }
    }
  }

  .store-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);

    .btn {
      padding: 0.75rem 1rem;
      font-weight: 600;
      border-radius: var(--border-radius-sm);
      text-align: center;
      text-decoration: none;
      transition: var(--transition-base);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--spacing-xs);
    }

    .btn-primary {
      background: var(--primary-color);
      color: var(--white);

      &:hover {
        background: var(--primary-dark);
      }
    }

    .btn-paypal {
      background: #003087;
      color: var(--white);

      &:hover {
        filter: brightness(90%);
      }
    }

    .btn-cancel {
      background: transparent;
      color: var(--light-gray);
      border: 1px solid var(--dark-gray-lightest);

      &:hover {
        background: rgba(255, 255, 255, 0.05);
      }
    }
  }

  .store-checkout-notice {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    p {
      color: var(--light-gray);
      font-size: 0.85rem;
      margin-bottom: var(--spacing-xs);

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

// Success/Cancel Page Styles
.store-result {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--box-shadow-md);

  .icon {
    margin-bottom: var(--spacing-lg);

    &.success {
      color: var(--success);
    }

    &.cancel, &.error {
      color: var(--danger);
    }

    &.processing {
      color: var(--primary-color);
    }

    svg {
      width: 80px;
      height: 80px;
    }
  }

  h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
  }

  p {
    color: var(--light-gray);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
  }

  .options, .next-steps {
    margin-top: var(--spacing-lg);

    p {
      color: var(--light-gray);
      margin-bottom: var(--spacing-md);
    }
  }

  .buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;

    @media (max-width: var(--breakpoint-sm)) {
      flex-direction: column;
    }

    .btn {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      min-width: 120px;
      background: var(--primary-color);
      color: var(--white);
      border: none;
      border-radius: var(--border-radius-sm);
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition-base);

      &:hover {
        background: var(--primary-dark);
      }
    }

    .btn-secondary {
      background: var(--dark-gray-lightest);

      &:hover {
        background: var(--dark-gray);
      }
    }
  }
}

// Transaction Details
.transaction-details {
  background: var(--dark-gray-lightest);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  text-align: left;

  .transaction-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);

    &:last-child {
      margin-bottom: 0;
    }

    .label {
      font-weight: 600;
      color: var(--light-gray);
    }

    .value {
      color: var(--white);
    }
  }
}

// Success page enhancements
.success-page {
  .success-animation {
    margin-bottom: var(--spacing-lg);

    .checkmark-container {
      display: inline-flex;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: rgba(76, 217, 100, 0.1);
      align-items: center;
      justify-content: center;
      
      .checkmark-check {
        color: var(--success);
        font-size: 2.5rem;
      }
      
      &.animate {
        animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
      }
    }
  }
  
  .success-content {
    opacity: 0;
    transform: translateY(20px);
    
    &.fade-in {
      animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
  }
  
  .success-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
  }
  
  .success-subtitle {
    color: var(--light-gray);
    margin-bottom: var(--spacing-lg);
  }
  
  .purchase-summary {
    background: var(--dark-gray-lightest);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    text-align: left;
    
    .summary-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: var(--spacing-md);
      padding-bottom: var(--spacing-sm);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      
      h3 {
        color: var(--white);
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
      }
      
      .status-badge {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-xs);
        padding: 0.25rem 0.5rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        
        &.success {
          background: rgba(76, 217, 100, 0.2);
          color: var(--success);
        }
      }
    }
    
    .summary-content {
      .package-info {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        
        .package-icon {
          width: 40px;
          height: 40px;
          border-radius: var(--border-radius-sm);
          background: var(--dark-gray);
          display: flex;
          align-items: center;
          justify-content: center;
          color: var(--primary-color);
        }
        
        .package-details {
          h4 {
            color: var(--white);
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 var(--spacing-xs) 0;
          }
          
          p {
            color: var(--light-gray);
            font-size: 0.9rem;
            margin: 0;
          }
        }
      }
      
      .transaction-grid {
        display: grid;
        gap: var(--spacing-sm);
        
        .transaction-item {
          display: flex;
          justify-content: space-between;
          align-items: center;
          
          .label {
            font-size: 0.9rem;
            color: var(--light-gray);
          }
          
          .value {
            font-size: 0.9rem;
            color: var(--white);
            display: flex;
            align-items: center;
            gap: var(--spacing-xs);
            
            &.amount {
              color: var(--primary-color);
              font-weight: 700;
              font-size: 1.1rem;
            }
            
            &.savings {
              color: var(--success);
            }
            
            &.original {
              text-decoration: line-through;
              color: var(--light-gray);
            }
          }
          
          .copy-btn {
            background: none;
            border: none;
            color: var(--light-gray);
            cursor: pointer;
            padding: 0;
            transition: var(--transition-base);
            
            &:hover {
              color: var(--white);
            }
          }
          
          &.total {
            margin-top: var(--spacing-sm);
            padding-top: var(--spacing-sm);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            
            .label {
              font-weight: 600;
              font-size: 1rem;
            }
          }
        }
      }
    }
  }
  
  .next-steps {
    margin-bottom: var(--spacing-xl);
    
    .steps-header {
      margin-bottom: var(--spacing-md);
      
      h3 {
        color: var(--white);
        font-size: 1.3rem;
        font-weight: 600;
      }
    }
    
    .steps-list {
      display: grid;
      gap: var(--spacing-md);
      
      @media (min-width: var(--breakpoint-md)) {
        grid-template-columns: repeat(3, 1fr);
      }
      
      .step {
        background: var(--dark-gray-lightest);
        border-radius: var(--border-radius-sm);
        padding: var(--spacing-md);
        
        .step-icon {
          margin-bottom: var(--spacing-sm);
          color: var(--primary-color);
        }
        
        .step-content {
          h4 {
            color: var(--white);
            font-size: 1rem;
            font-weight: 600;
            margin: 0 0 var(--spacing-xs) 0;
          }
          
          p {
            color: var(--light-gray);
            font-size: 0.9rem;
            margin: 0;
          }
        }
      }
    }
  }
  
  .action-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    
    @media (max-width: var(--breakpoint-sm)) {
      flex-direction: column;
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--spacing-xs);
      padding: 0.75rem 1.5rem;
      border-radius: var(--border-radius-sm);
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition-base);
      
      &.btn-primary {
        background: var(--primary-color);
        color: var(--white);
        
        &:hover {
          background: var(--primary-dark);
        }
      }
      
      &.btn-secondary {
        background: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        
        &:hover {
          background: rgba(75, 139, 255, 0.1);
        }
      }
    }
  }
  
  .help-section {
    .help-text {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--spacing-xs);
      color: var(--light-gray);
      font-size: 0.9rem;
      
      svg {
        color: var(--primary-color);
      }
    }
  }
}
// Purchase History Styles
.purchase-history {
  padding-bottom: var(--spacing-xl);

  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    @media (max-width: var(--breakpoint-md)) {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--spacing-md);
    }

    .header-content {
      h1 {
        color: var(--white);
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: var(--spacing-xs);
      }

      p {
        color: var(--light-gray);
        font-size: 0.9rem;
      }
    }

    .header-actions {
      .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-xs);
      }
    }
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);

    @media (max-width: var(--breakpoint-lg)) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: var(--breakpoint-sm)) {
      grid-template-columns: 1fr;
    }

    .stat-card {
      background: var(--dark-gray-lighter);
      border-radius: var(--border-radius-md);
      padding: var(--spacing-md);
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: var(--transition-base);

      &:hover {
        transform: translateY(-4px);
        box-shadow: var(--box-shadow-md);
        border-color: var(--primary-color);
      }

      .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: var(--border-radius-sm);
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);

        &.money {
          background: var(--success);
        }

        &.pending {
          background: var(--warning);
        }

        &.favorite {
          background: #e91e63;
        }
      }

      .stat-content {
        h3 {
          color: var(--white);
          font-size: 1.5rem;
          font-weight: 700;
          margin: 0 0 0.25rem 0;
        }

        p {
          color: var(--light-gray);
          margin: 0;
          font-size: 0.9rem;
        }
      }
    }
  }

  .filters-section {
    background: var(--dark-gray-lighter);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);

    .filters-form {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: var(--spacing-md);

      @media (max-width: var(--breakpoint-md)) {
        grid-template-columns: 1fr;
      }

      .filter-group {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);

        label {
          color: var(--white);
          font-size: 0.9rem;
          font-weight: 600;
        }

        .search-input {
          position: relative;

          svg {
            position: absolute;
            left: var(--spacing-sm);
            top: 50%;
            transform: translateY(-50%);
            color: var(--light-gray);
          }

          input {
            width: 100%;
            background: var(--dark-gray);
            border: 1px solid var(--dark-gray-lightest);
            border-radius: var(--border-radius-sm);
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            color: var(--white);
            font-size: 0.9rem;

            &:focus {
              outline: none;
              border-color: var(--primary-color);
              box-shadow: 0 0 0 3px rgba(75, 139, 255, 0.2);
            }

            &::placeholder {
              color: var(--light-gray);
            }
          }
        }

        select {
          background: var(--dark-gray);
          border: 1px solid var(--dark-gray-lightest);
          border-radius: var(--border-radius-sm);
          padding: 0.5rem var(--spacing-sm);
          color: var(--white);
          font-size: 0.9rem;
          appearance: none;
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239A9A9A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: right var(--spacing-sm) center;
          padding-right: 2rem;

          &:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(75, 139, 255, 0.2);
          }
        }
      }

      .filter-actions {
        display: flex;
        gap: var(--spacing-sm);
        align-items: flex-end;

        .btn-filter {
          background: var(--primary-color);
          color: var(--white);
          border: none;
          border-radius: var(--border-radius-sm);
          padding: 0.5rem 1rem;
          font-weight: 600;
          display: inline-flex;
          align-items: center;
          gap: var(--spacing-xs);
          cursor: pointer;
          transition: var(--transition-base);

          &:hover {
            background: var(--primary-dark);
          }
        }

        .btn-clear {
          background: transparent;
          color: var(--light-gray);
          border: 1px solid var(--dark-gray-lightest);
          border-radius: var(--border-radius-sm);
          padding: 0.5rem 1rem;
          font-weight: 600;
          text-decoration: none;
          transition: var(--transition-base);

          &:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--white);
          }
        }
      }
    }
  }

  .transactions-section {
    .transactions-list {
      display: flex;
      flex-direction: column;
      gap: var(--spacing-md);
      margin-bottom: var(--spacing-lg);

      .transaction-card {
        background: var(--dark-gray-lighter);
        border-radius: var(--border-radius-md);
        padding: var(--spacing-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: var(--transition-base);

        &:hover {
          box-shadow: var(--box-shadow-md);
          transform: translateY(-2px);
        }

        &[data-status="completed"] {
          border-left: 3px solid var(--success);
        }

        &[data-status="pending"] {
          border-left: 3px solid var(--warning);
        }

        &[data-status="cancelled"], &[data-status="failed"] {
          border-left: 3px solid var(--danger);
        }

        .transaction-header {
          display: flex;
          justify-content: space-between;
          align-items: flex-start;
          margin-bottom: var(--spacing-md);
          padding-bottom: var(--spacing-sm);
          border-bottom: 1px solid rgba(255, 255, 255, 0.05);

          @media (max-width: var(--breakpoint-sm)) {
            flex-direction: column;
            gap: var(--spacing-sm);
          }

          .package-info {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);

            .package-icon {
              width: 40px;
              height: 40px;
              background: var(--dark-gray);
              border-radius: var(--border-radius-sm);
              display: flex;
              align-items: center;
              justify-content: center;
              color: var(--primary-color);
            }

            .package-details {
              h4 {
                color: var(--white);
                font-size: 1.1rem;
                font-weight: 600;
                margin: 0 0 0.25rem 0;
              }

              p {
                color: var(--light-gray);
                font-size: 0.9rem;
                margin: 0;
              }
            }
          }

          .transaction-status {
            .status-badge {
              display: inline-block;
              padding: 0.25rem 0.5rem;
              border-radius: 20px;
              font-size: 0.75rem;
              font-weight: 600;
              text-transform: uppercase;

              &.completed {
                background: rgba(76, 217, 100, 0.1);
                color: var(--success);
                border: 1px solid rgba(76, 217, 100, 0.2);
              }

              &.pending {
                background: rgba(255, 193, 7, 0.1);
                color: var(--warning);
                border: 1px solid rgba(255, 193, 7, 0.2);
              }

              &.cancelled, &.failed {
                background: rgba(255, 59, 48, 0.1);
                color: var(--danger);
                border: 1px solid rgba(255, 59, 48, 0.2);
              }
            }
          }
        }

        .transaction-details {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
          gap: var(--spacing-sm) var(--spacing-md);
          margin-bottom: var(--spacing-md);

          .detail-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;

            .label {
              color: var(--light-gray);
              font-size: 0.85rem;
            }

            .value {
              color: var(--white);
              font-size: 0.9rem;
              font-weight: 500;

              &.amount {
                color: var(--primary-color);
                font-weight: 700;
              }

              &.transaction-id {
                font-family: monospace;
                font-size: 0.85rem;
              }
            }
          }
        }

        .transaction-actions {
          display: flex;
          justify-content: flex-end;
          gap: var(--spacing-sm);

          @media (max-width: var(--breakpoint-sm)) {
            flex-direction: column;
          }

          .btn {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-xs);
            padding: 0.5rem 1rem;
            border-radius: var(--border-radius-sm);
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            transition: var(--transition-base);
            cursor: pointer;
            border: none;

            &.btn-view {
              background: var(--primary-color);
              color: var(--white);

              &:hover {
                background: var(--primary-dark);
              }
            }

            &.btn-download {
              background: transparent;
              color: var(--white);
              border: 1px solid var(--primary-color);

              &:hover {
                background: rgba(75, 139, 255, 0.1);
              }
            }
          }
        }
      }
    }

    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: var(--spacing-xl) var(--spacing-lg);
      text-align: center;
      background: var(--dark-gray-lighter);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: var(--border-radius-md);

      .empty-icon {
        margin-bottom: var(--spacing-lg);
        opacity: 0.5;
        color: var(--light-gray);
      }

      h3 {
        color: var(--white);
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
      }

      p {
        color: var(--light-gray);
        margin-bottom: var(--spacing-lg);
      }

      .btn-primary {
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: var(--border-radius-sm);
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition-base);

        &:hover {
          background: var(--primary-dark);
        }
      }
    }
  }

  .pagination-wrapper {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;

    .pagination {
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
      gap: 0.25rem;

      .page-item {
        .page-link {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 40px;
          height: 40px;
          background: var(--dark-gray-lighter);
          border: 1px solid rgba(255, 255, 255, 0.05);
          border-radius: var(--border-radius-sm);
          color: var(--light-gray);
          text-decoration: none;
          transition: var(--transition-base);

          &:hover {
            background: var(--dark-gray-lightest);
            color: var(--white);
          }
        }

        &.active .page-link {
          background: var(--primary-color);
          color: var(--white);
          border-color: var(--primary-color);
        }

        &.disabled .page-link {
          opacity: 0.5;
          cursor: not-allowed;

          &:hover {
            background: var(--dark-gray-lighter);
            color: var(--light-gray);
          }
        }
      }
    }
  }
}

// Purchase Detail Styles
.purchase-detail {
  padding-bottom: var(--spacing-xl);

  .back-navigation {
    margin-bottom: var(--spacing-md);

    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: var(--spacing-xs);
      color: var(--light-gray);
      text-decoration: none;
      transition: var(--transition-base);

      &:hover {
        color: var(--white);
      }
    }
  }

  .transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    @media (max-width: var(--breakpoint-md)) {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--spacing-md);
    }

    .transaction-title {
      h1 {
        color: var(--white);
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
      }

      .transaction-meta {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        color: var(--light-gray);
        font-size: 0.9rem;

        .status-badge {
          display: inline-block;
          padding: 0.25rem 0.5rem;
          border-radius: 20px;
          font-size: 0.75rem;
          font-weight: 600;
          text-transform: uppercase;

          &.completed {
            background: rgba(76, 217, 100, 0.1);
            color: var(--success);
            border: 1px solid rgba(76, 217, 100, 0.2);
          }

          &.pending {
            background: rgba(255, 193, 7, 0.1);
            color: var(--warning);
            border: 1px solid rgba(255, 193, 7, 0.2);
          }

          &.cancelled, &.failed {
            background: rgba(255, 59, 48, 0.1);
            color: var(--danger);
            border: 1px solid rgba(255, 59, 48, 0.2);
          }
        }
      }
    }

    .transaction-actions {
      display: flex;
      gap: var(--spacing-sm);

      @media (max-width: var(--breakpoint-sm)) {
        flex-direction: column;
        width: 100%;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xs);
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius-sm);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition-base);
        cursor: pointer;
        border: none;

        &.btn-secondary {
          background: transparent;
          color: var(--white);
          border: 1px solid var(--light-gray);

          &:hover {
            border-color: var(--white);
            background: rgba(255, 255, 255, 0.05);
          }
        }

        &.btn-primary {
          background: var(--primary-color);
          color: var(--white);

          &:hover {
            background: var(--primary-dark);
          }
        }
      }
    }
  }

  .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);

    @media (max-width: var(--breakpoint-lg)) {
      grid-template-columns: 1fr;
    }

    .package-card {
      grid-column: 1;
      grid-row: span 2;

      @media (max-width: var(--breakpoint-lg)) {
        grid-column: auto;
        grid-row: auto;
      }
    }

    .detail-card {
      background: var(--dark-gray-lighter);
      border-radius: var(--border-radius-md);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.05);

      .card-header {
        background: var(--dark-gray-lightest);
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);

        h3 {
          color: var(--white);
          font-size: 1.2rem;
          font-weight: 600;
          margin: 0;
        }
      }

      .card-content {
        padding: var(--spacing-md);
      }

      &.package-card {
        .package-overview {
          display: flex;
          align-items: flex-start;
          gap: var(--spacing-md);
          margin-bottom: var(--spacing-lg);

          .package-icon {
            width: 50px;
            height: 50px;
            background: var(--dark-gray);
            border-radius: var(--border-radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            flex-shrink: 0;
          }

          .package-info {
            h4 {
              color: var(--white);
              font-size: 1.3rem;
              font-weight: 600;
              margin: 0 0 0.25rem 0;
            }

            .package-type {
              display: inline-block;
              background: rgba(75, 139, 255, 0.1);
              color: var(--primary-color);
              padding: 0.25rem 0.5rem;
              border-radius: 20px;
              font-size: 0.75rem;
              font-weight: 600;
              margin-bottom: 0.5rem;
            }

            .package-description {
              color: var(--light-gray);
              font-size: 0.9rem;
              line-height: 1.5;
              margin: 0;
            }
          }
        }

        .package-features {
          h5 {
            color: var(--white);
            font-size: 1rem;
            font-weight: 600;
            margin: 0 0 var(--spacing-sm) 0;
          }

          ul {
            list-style: none;
            padding: 0;
            margin: 0;

            li {
              display: flex;
              align-items: center;
              gap: var(--spacing-xs);
              padding: 0.5rem 0;
              color: var(--light-gray);
              font-size: 0.9rem;
              border-bottom: 1px solid rgba(255, 255, 255, 0.05);

              &:last-child {
                border-bottom: none;
              }

              svg {
                color: var(--success);
                flex-shrink: 0;
              }
            }
          }
        }
      }

      &.transaction-card {
        .detail-grid-items {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
          gap: var(--spacing-md);

          .detail-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;

            .label {
              color: var(--light-gray);
              font-size: 0.85rem;
            }

            .value {
              color: var(--white);
              font-size: 0.9rem;
              font-weight: 500;
              display: flex;
              align-items: center;
              gap: var(--spacing-xs);

              &.payment-method {
                svg {
                  color: var(--light-gray);
                }
              }
            }
          }
        }
      }

      &.payment-card {
        .payment-breakdown {
          margin-bottom: var(--spacing-md);

          .payment-item {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);

            &:last-child {
              border-bottom: none;
            }

            .label {
              color: var(--light-gray);
              font-size: 0.9rem;

              .coupon-code {
                display: inline-block;
                background: rgba(255, 193, 7, 0.1);
                color: var(--warning);
                padding: 0.125rem 0.375rem;
                border-radius: 4px;
                font-size: 0.75rem;
                margin-left: 0.5rem;
              }
            }

            .value {
              color: var(--white);
              font-size: 0.9rem;
              font-weight: 600;

              &.original {
                text-decoration: line-through;
                color: var(--light-gray);
                font-weight: normal;
              }

              &.savings {
                color: var(--success);
              }

              &.amount {
                color: var(--primary-color);
                font-size: 1.1rem;
                font-weight: 700;
              }
            }

            &.total {
              margin-top: var(--spacing-sm);
              padding-top: var(--spacing-sm);
              border-top: 1px solid rgba(255, 255, 255, 0.1);
              border-bottom: none;

              .label {
                font-weight: 600;
                color: var(--white);
              }
            }
          }
        }

        .savings-highlight {
          display: flex;
          align-items: center;
          gap: var(--spacing-xs);
          background: rgba(76, 217, 100, 0.1);
          color: var(--success);
          padding: 0.5rem var(--spacing-sm);
          border-radius: var(--border-radius-sm);
          font-size: 0.9rem;
          font-weight: 600;
        }
      }
    }
  }

  .additional-actions {
    background: var(--dark-gray-lighter);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);

    .action-group {
      text-align: center;

      h4 {
        color: var(--white);
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0 0 var(--spacing-xs) 0;
      }

      p {
        color: var(--light-gray);
        margin-bottom: var(--spacing-md);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
      }

      .action-buttons {
        display: flex;
        justify-content: center;
        gap: var(--spacing-md);

        @media (max-width: var(--breakpoint-sm)) {
          flex-direction: column;
          align-items: center;
        }

        .btn {
          display: inline-block;
          padding: 0.75rem 1.5rem;
          border-radius: var(--border-radius-sm);
          font-weight: 600;
          text-decoration: none;
          transition: var(--transition-base);

          &.btn-outline {
            background: transparent;
            color: var(--white);
            border: 1px solid var(--light-gray);

            &:hover {
              border-color: var(--white);
              background: rgba(255, 255, 255, 0.05);
            }
          }

          &.btn-primary {
            background: var(--primary-color);
            color: var(--white);
            border: none;

            &:hover {
              background: var(--primary-dark);
            }
          }
        }
      }
    }
  }
}