.ach-gcw-panel,
.ach-gcw-account-wrap {
    margin: 24px 0;
}

.ach-gcw-section-head,
.ach-gcw-account-header {
    margin-bottom: 18px;
}

.ach-gcw-section-head p,
.ach-gcw-account-header p {
    margin: 6px 0 0;
    color: #64748b;
}

.ach-gcw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.ach-gcw-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a 0%, #111827 52%, #172554 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    color: #fff;
    text-align: left;
}

.ach-gcw-card:before {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), rgba(59, 130, 246, 0));
    pointer-events: none;
    z-index: -1;
}

.ach-gcw-card:after {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: -1;
}

.ach-gcw-card * {
    direction: ltr;
}

.ach-gcw-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.ach-gcw-card-top-main {
    display: grid;
    gap: 10px;
    align-content: start;
    justify-items: start;
    min-width: 0;
}

.ach-gcw-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.ach-gcw-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 18px 0;
}

.ach-gcw-list-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.ach-gcw-pill,
.ach-gcw-status,
.ach-gcw-listing-badge,
.ach-gcw-list-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.ach-gcw-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
}

.ach-gcw-status {
    background: rgba(16, 185, 129, 0.16);
    color: #d1fae5;
}

.ach-gcw-card.is-redeemed .ach-gcw-status {
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

.ach-gcw-card.is-revoked .ach-gcw-status {
    background: rgba(239, 68, 68, 0.16);
    color: #fee2e2;
}

.ach-gcw-card.is-expired .ach-gcw-status {
    background: rgba(245, 158, 11, 0.18);
    color: #fef3c7;
}

.ach-gcw-list-status {
    border: 1px solid transparent;
    flex-shrink: 0;
}

.ach-gcw-list-status.is-active {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.ach-gcw-list-status.is-redeemed {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.ach-gcw-list-status.is-revoked {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ach-gcw-list-status.is-expired {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

.ach-gcw-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.ach-gcw-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(191, 219, 254, 0.12);
    border: 1px solid rgba(191, 219, 254, 0.16);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
    font-size: 14px;
    font-weight: 700;
    color: #bfdbfe;
    white-space: nowrap;
}

.ach-gcw-code {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    user-select: all;
}

.ach-gcw-copy-btn.button {
    margin: 0;
    padding: 9px 14px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.ach-gcw-copy-btn.is-copied {
    background: #10b981 !important;
    color: #fff !important;
}

.ach-gcw-meta {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #dbeafe;
}

.ach-gcw-meta strong {
    color: #fff;
}

.ach-gcw-meta-compact {
    margin-top: 8px;
}

.ach-gcw-status-line {
    display: flex;
    justify-content: flex-start;
}

.ach-gcw-status-inline {
    display: inline-flex;
    justify-content: center;
    align-self: flex-start;
    min-height: 34px;
    padding: 8px 14px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
}

.ach-gcw-status-inline.is-active {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.26);
    color: #ecfdf5;
}

.ach-gcw-status-inline.is-redeemed {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.24);
    color: #eff6ff;
}

.ach-gcw-status-inline.is-revoked {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(252, 165, 165, 0.24);
    color: #fff1f2;
}

.ach-gcw-status-inline.is-expired {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(252, 211, 77, 0.24);
    color: #fffbeb;
}

.ach-gcw-listing-grid .ach-gcw-card {
    min-height: 280px;
}

.ach-gcw-listing-badge {
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(165, 180, 252, 0.22);
    color: #e0e7ff;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
}

.ach-gcw-game-label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #cbd5e1;
}

.ach-gcw-value {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.ach-gcw-subtitle {
    min-height: 52px;
    font-size: 14px;
    line-height: 1.75;
    color: #dbeafe;
}

.ach-gcw-price {
    margin: 16px 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.ach-gcw-buy-btn.button {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
}

.ach-gcw-order-mini-list {
    margin: 0;
    padding-left: 18px;
}

.ach-gcw-order-mini-list li {
    margin: 0 0 8px;
}

.ach-gcw-admin-table .ach-gcw-code-box {
    margin: 0;
}

.ach-gcw-account-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ach-gcw-card-list-column {
    display: grid;
    gap: 14px;
}

.ach-gcw-card-list {
    display: grid;
    gap: 12px;
}

.ach-gcw-list-item {
    display: block;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    direction: ltr;
    text-align: left;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ach-gcw-list-item:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.1);
}

.ach-gcw-list-item.is-selected {
    border-color: #3b82f6;
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.14);
}

.ach-gcw-list-game {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #334155;
}

.ach-gcw-list-title {
    display: block;
    margin: 12px 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

.ach-gcw-list-amount {
    display: block;
    font-size: 14px;
    color: #475569;
}

.ach-gcw-card-detail .ach-gcw-card {
    margin: 0;
}

.rtl .ach-gcw-card,
.rtl .ach-gcw-list-item,
.rtl .ach-gcw-code-box,
.rtl .ach-gcw-title,
.rtl .ach-gcw-meta,
.rtl .ach-gcw-list-top,
.rtl .ach-gcw-list-title,
.rtl .ach-gcw-list-amount {
    direction: ltr;
    text-align: left;
}

.ach-gcw-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ach-gcw-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    color: #0f172a;
    font-weight: 700;
    text-decoration: none !important;
}

.ach-gcw-page-link:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.ach-gcw-page-link.is-current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ach-gcw-page-prev,
.ach-gcw-page-next {
    padding: 0 16px;
}

.ach-gcw-card-side {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-content: start;
    flex-shrink: 0;
}

.ach-gcw-expiry-badge {
    display: grid;
    gap: 4px;
    justify-items: end;
    padding: 10px 12px;
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.28);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(4px);
}

.ach-gcw-expiry-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.ach-gcw-expiry-date {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.ach-gcw-list-item .ach-gcw-list-status {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    -webkit-text-fill-color: currentColor;
}

.ach-gcw-list-item .ach-gcw-list-status.is-active {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.ach-gcw-list-item .ach-gcw-list-status.is-redeemed {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

.ach-gcw-list-item .ach-gcw-list-status.is-revoked {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.ach-gcw-list-item .ach-gcw-list-status.is-expired {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #b45309 !important;
}

@media (max-width: 900px) {
    .ach-gcw-account-layout {
        grid-template-columns: 1fr;
    }

    .ach-gcw-title {
        font-size: 24px;
    }

    .ach-gcw-card-top,
    .ach-gcw-heading-row,
    .ach-gcw-list-top {
        grid-template-columns: 1fr;
    }

    .ach-gcw-card-side,
    .ach-gcw-expiry-badge {
        justify-items: start;
    }

    .ach-gcw-pagination {
        justify-content: center;
    }
}
