.purchases-page { padding-bottom: 48px; }

    .orders-list { display: flex; flex-direction: column; gap: 12px; }

    .order-card {
      background: var(--panel-dark);
      border: 2px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius);
      padding: 18px 20px;
      box-shadow: var(--shadow-md);
    }

    .order-card-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .order-card-meta {
      min-width: 0;
    }

    .order-card-summary {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      flex-shrink: 0;
    }

    .order-id {
      font-family: 'Fredoka', sans-serif;
      font-size: 1rem;
      color: var(--gold);
    }

    .order-date {
      font-size: 0.78rem;
      color: rgba(238, 241, 255, 0.5);
    }

    .order-total {
      font-weight: 800;
      font-size: 1rem;
      color: #fff;
      white-space: nowrap;
    }

    .order-status {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .order-items {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .order-item-block {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
    }

    .order-item-row {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.88rem;
      color: rgba(238, 241, 255, 0.85);
    }

    .order-item-row img { height: 18px; width: auto; flex-shrink: 0; }

    .flag {
      width: 20px;
      height: 14px;
      border-radius: 2px;
      overflow: hidden;
      flex-shrink: 0;
      border: 1px solid rgba(0, 0, 0, 0.08);
      display: inline-block;
    }

    .flag-ru {
      background: linear-gradient(to bottom, #fff 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66%);
    }

    .flag-global {
      background: var(--surface-2);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--green);
      font-size: 11px;
      font-weight: 700;
      border-color: var(--border);
    }

    .order-code-box {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
      padding: 8px 10px 8px 12px;
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      max-width: 100%;
      width: fit-content;
    }

    .order-code-text {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.85rem;
      color: #fff;
      white-space: nowrap;
      line-height: 1.2;
    }

    .order-code-copy {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      padding: 0;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.08);
      color: rgba(238, 241, 255, 0.9);
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.15s, color 0.15s, transform 0.12s;
    }

    .order-code-copy svg {
      width: 16px;
      height: 16px;
    }

    .order-code-copy:hover {
      background: rgba(255, 201, 54, 0.18);
      color: var(--gold);
    }

    .order-code-copy.is-copied {
      background: rgba(2, 183, 87, 0.2);
      color: #7dffb0;
    }

    .order-code-copy:active {
      transform: scale(0.96);
    }

    .orders-empty {
      text-align: center;
      padding: 48px 24px;
      background: var(--panel-dark);
      border: 2px dashed rgba(255, 255, 255, 0.12);
      border-radius: var(--radius);
      color: rgba(238, 241, 255, 0.55);
    }

    .orders-empty p { margin-bottom: 16px; font-size: 0.95rem; }

    .order-status--completed {
      color: #7dffb0;
      background: rgba(2, 183, 87, 0.15);
      border: 1px solid rgba(2, 183, 87, 0.35);
    }

    .order-status--processing,
    .order-status--pending_payment {
      color: #8ec8ff;
      background: rgba(80, 160, 255, 0.12);
      border: 1px solid rgba(80, 160, 255, 0.35);
    }

    .order-status--failed,
    .order-status--partial_failure {
      color: #ff9b9b;
      background: rgba(255, 80, 80, 0.12);
      border: 1px solid rgba(255, 80, 80, 0.35);
    }

    .orders-empty a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background: rgba(255, 201, 54, 0.12);
      border: 2px solid rgba(255, 201, 54, 0.35);
      border-radius: 12px;
      color: var(--gold);
      font-weight: 700;
    }

    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(180deg, #03d46a 0%, var(--green) 100%);
      color: #fff;
      padding: 10px 18px;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 700;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
      z-index: 300;
      display: none;
      pointer-events: none;
    }

    .toast.show { display: block; }