/* طرق الدفع payment-methods.php — منسوخ من متجر محمد بكري (2026-10-23) */


        /* Page Title */
        .page-title {
            text-align: center;
            padding: 40px 0 30px;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-secondary);
        }
        .page-title h1 {
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 8px;
        }
        .page-title h1 i { color: var(--primary); }
        .page-title p {
            color: var(--text-secondary);
            font-size: 1rem;
        }

        /* Payment Methods Section */
        .payment-section { padding: 40px 0 60px; }
        .payment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 25px;
            max-width: 900px;
            margin: 0 auto;
        }
        @media (max-width: 768px) {
            .payment-grid { grid-template-columns: 1fr; }
        }

        /* Payment Card */
        .pm-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s;
            position: relative;
        }
        .pm-card:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
            box-shadow: 0 10px 40px rgba(0,212,255,0.12);
        }
        .pm-card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 24px 24px 16px;
        }
        .pm-icon {
            width: 60px;
            height: 60px;
            min-width: 60px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
        }
        .pm-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .pm-header-info {
            flex: 1;
            min-width: 0;
        }
        .pm-name {
            font-size: 1.2rem;
            font-weight: 700;
        }
        .pm-account-name {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 4px;
        }
        /* Mobile Toggle Button */
        .pm-toggle-btn {
            display: none;
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            color: var(--primary);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.3s;
        }
        .pm-toggle-btn i {
            transition: transform 0.3s;
        }
        .pm-toggle-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .pm-toggle-btn.active i {
            transform: rotate(180deg);
        }
        .pm-card-body {
            padding: 0 24px 20px;
        }

        /* Mobile Accordion */
        @media (max-width: 768px) {
            .pm-toggle-btn {
                display: flex;
            }
            .pm-card-header {
                padding: 16px;
                cursor: pointer;
                -webkit-tap-highlight-color: transparent;
                user-select: none;
            }
            .pm-card-body {
                max-height: 0;
                overflow: hidden;
                padding: 0 16px;
                transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
            }
            .pm-card-body.open {
                max-height: 800px;
                padding: 0 16px 20px;
            }
            .pm-card:hover {
                transform: none;
            }
            .pm-icon {
                width: 48px;
                height: 48px;
                min-width: 48px;
                font-size: 1.3rem;
            }
            .pm-name {
                font-size: 1.05rem;
            }
            .pm-info-row {
                padding: 10px 12px;
                flex-wrap: wrap;
                gap: 6px;
            }
            .pm-info-value {
                font-size: 0.88rem;
            }
        }

        /* Info Rows */
        .pm-info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 10px;
            transition: border-color 0.3s;
        }
        .pm-info-row:hover {
            border-color: var(--primary);
        }
        .pm-info-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .pm-info-label i {
            color: var(--primary);
            font-size: 0.85rem;
        }
        .pm-info-value {
            font-family: Cairo, sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
            letter-spacing: 0.5px;
            direction: ltr;
            text-align: left;
            word-break: break-all;
        }
        .pm-copy-btn {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            margin-right: 10px;
        }
        .pm-copy-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(0,212,255,0.08);
        }
        .pm-copy-btn.copied {
            border-color: var(--success);
            color: var(--success);
            background: rgba(16,185,129,0.1);
        }

        /* QR Code */
        .pm-qr {
            text-align: center;
            margin-top: 10px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }
        .pm-qr img {
            max-width: 160px;
            height: auto;
            border-radius: 12px;
            border: 2px solid var(--border-color);
        }
        .pm-qr p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-top: 8px;
        }

        /* Instructions */
        .pm-instructions {
            background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(139,92,246,0.06));
            border: 1px solid rgba(0,212,255,0.15);
            border-radius: 12px;
            padding: 12px 16px;
            margin-top: 12px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.7;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }
        .pm-instructions i {
            color: var(--primary);
            margin-top: 4px;
            flex-shrink: 0;
        }

        /* Payment Link Button */
        .pm-pay-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 14px 20px;
            margin-top: 14px;
            background: linear-gradient(135deg, var(--primary), #8b5cf6);
            color: #fff;
            border: none;
            border-radius: 14px;
            font-family: 'Cairo', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0,212,255,0.3);
        }
        .pm-pay-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,212,255,0.4);
            filter: brightness(1.1);
        }
        .pm-pay-link i {
            font-size: 1.1rem;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }
        .empty-state i {
            font-size: 4rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .empty-state h3 {
            font-size: 1.3rem;
            margin-bottom: 10px;
        }
        .empty-state p {
            color: var(--text-secondary);
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--bg-card);
            border: 1px solid var(--success);
            color: var(--success);
            padding: 12px 24px;
            border-radius: 12px;
            font-family: 'Cairo', sans-serif;
            font-weight: 600;
            z-index: 10000;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        .toast.show {
            transform: translateX(-50%) translateY(0);
        }

        /* ===== صفحة طرق الدفع — عرض أكبر + تصميم احترافي ===== */
        .page-title { padding: 30px 0 24px; background: radial-gradient(60% 120% at 50% 0%, rgba(0, 212, 255, .08), transparent 70%), var(--bg-secondary); }
        .page-title h1 { font-size: 1.7rem; font-weight: 900; }
        .page-title h1 i {
            width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
            background: linear-gradient(135deg, rgba(0, 212, 255, .18), rgba(99, 102, 241, .14)); border: 1px solid rgba(0, 212, 255, .35);
            box-shadow: 0 8px 22px rgba(0, 212, 255, .18);
        }
        .page-title p { font-size: .95rem; margin-bottom: 14px; }
        .pmp-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
        .pmp-trust span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #cbd5e1; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
        .pmp-trust span:nth-child(1) i { color: #10b981; }
        .pmp-trust span:nth-child(2) i { color: #00d4ff; }
        .pmp-trust span:nth-child(3) i { color: #a855f7; }

        .payment-section { padding: 30px 0 60px; }
        .payment-section > .container { max-width: 1400px; padding-left: clamp(14px, 2vw, 24px); padding-right: clamp(14px, 2vw, 24px); }
        @media (min-width: 1440px) { .payment-section > .container { max-width: 1800px; padding-left: clamp(16px, 1.6vw, 32px); padding-right: clamp(16px, 1.6vw, 32px); } }

        /* إزاي تدفع؟ */
        .pmp-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 auto 26px; }
        .pmp-how div {
            display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
            background: linear-gradient(160deg, rgba(21, 26, 44, .95), rgba(15, 19, 34, .95)); border: 1px solid rgba(255, 255, 255, .08);
        }
        .pmp-how b {
            flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
            font-size: .85rem; font-weight: 900; color: #001018; background: linear-gradient(135deg, #00d4ff, #6366f1); box-shadow: 0 0 0 5px rgba(0, 212, 255, .1);
        }
        .pmp-how em { display: block; font-style: normal; font-size: .9rem; font-weight: 900; color: #fff; }
        .pmp-how small { display: block; font-size: .76rem; color: #94a3b8; margin-top: 2px; }

        .payment-grid { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
        .pm-card {
            --pm: #00d4ff;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, .08);
            background: radial-gradient(110% 45% at 50% 0%, color-mix(in srgb, var(--pm) 12%, transparent), transparent 65%), linear-gradient(160deg, #151a2c 0%, #0f1322 100%);
            box-shadow: 0 16px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
        }
        .pm-card::before { content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 3px; border-radius: 0 0 4px 4px; background: var(--pm); box-shadow: 0 0 16px var(--pm); }
        .pm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pm) 45%, transparent); box-shadow: 0 20px 46px rgba(0, 0, 0, .35); }
        .pm-card-header { padding: 22px 22px 14px; gap: 14px; }
        .pm-icon { width: 58px; height: 58px; min-width: 58px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--pm) 40%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pm) 8%, transparent); overflow: hidden; }
        .pm-icon img { padding: 8px; }
        .pm-name { font-size: 1.15rem; font-weight: 900; color: #fff; }
        .pm-sub { font-size: .76rem; font-weight: 700; color: #94a3b8; margin-top: 3px; }
        .pm-card-body { padding: 0 22px 22px; }
        .pm-info-row { gap: 12px; padding: 11px 12px 11px 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }
        .pm-info-row:hover { border-color: color-mix(in srgb, var(--pm) 45%, transparent); }
        .pm-info-row > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; flex: 1; }
        .pm-info-label { font-size: .76rem; font-weight: 700; }
        .pm-info-value { text-align: right; direction: ltr; unicode-bidi: plaintext; font-size: 1.08rem; font-weight: 900; letter-spacing: .5px; color: #fff; }
        .pm-copy-btn { width: 40px; height: 40px; min-width: 40px; border-radius: 12px; margin-right: 0; color: #00d4ff; background: rgba(0, 212, 255, .08); border-color: rgba(0, 212, 255, .3); }
        .pm-copy-btn:hover { background: linear-gradient(135deg, #00d4ff, #6366f1); color: #001018; border-color: transparent; }
        .pm-qr { border-top: 1px dashed rgba(255, 255, 255, .08); }
        .pm-qr img { max-width: 170px; padding: 8px; background: #fff; border: none; border-radius: 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
        .pm-instructions { border-radius: 14px; }
        .pm-pay-link { border-radius: 14px; font-weight: 900; padding: 12px 16px; gap: 8px; font-size: .9rem; line-height: 1.3; min-height: 46px; }
        .pm-pay-link span, .pm-pay-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        @media (max-width: 400px) { .pm-pay-link { font-size: .82rem; padding: 11px 12px; } }

        /* توحيد الكروت: نفس الارتفاع في الصف + QR بنفس المقاس + زرار الدفع تحت خالص */
        @media (min-width: 769px) {
            .payment-grid { align-items: stretch; }
            .pm-card { display: flex; flex-direction: column; }
            .pm-card-body { flex: 1; display: flex; flex-direction: column; }
            .pm-instructions { min-height: 92px; align-items: center; }
            .pm-pay-link { margin-top: auto; }
            .pm-card-body > .pm-instructions:last-child { margin-bottom: 0; }
            .pm-card-body > *:last-child:not(.pm-pay-link) { margin-bottom: 0; }
        }
        .pm-qr img {
            width: 176px; height: 176px; max-width: 176px; object-fit: contain;
            padding: 10px; box-sizing: border-box;
        }
        .pm-qr p { margin-top: 10px; font-weight: 700; }
        .pmp-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 16px 20px; border-radius: 20px; background: rgba(16, 185, 129, .07); border: 1px solid rgba(16, 185, 129, .28); }
        .pmp-cta p { margin: 0; font-size: .9rem; font-weight: 700; color: #a7f3d0; }
        .pmp-cta p i { color: #10b981; margin-left: 6px; }
        .pmp-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px; font-weight: 900; font-size: .9rem; color: #fff; text-decoration: none; background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 10px 24px rgba(37, 211, 102, .25); }
        [data-theme="light"] .pm-card, [data-theme="light"] .pmp-how div { background: #fff; border-color: rgba(15, 23, 42, .08); box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
        [data-theme="light"] .pm-name, [data-theme="light"] .pm-info-value, [data-theme="light"] .pmp-how em { color: #0f172a; }
        [data-theme="light"] .pm-info-row { background: #f8fafc; border-color: rgba(15, 23, 42, .08); }
        [data-theme="light"] .pmp-trust span { color: #334155; background: #fff; border-color: rgba(15, 23, 42, .1); }
        @media (max-width: 768px) {
            .page-title h1 { font-size: 1.35rem; }
            .page-title h1 i { width: 38px; height: 38px; font-size: .95rem; }
            .pmp-trust span { font-size: .7rem; padding: 4px 10px; }
            .pmp-how { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
            .pmp-how div { padding: 10px 12px; border-radius: 14px; }
            .pm-card-header { padding: 14px 14px; }
            .pm-card-body.open { padding: 0 14px 16px; }
            .pm-info-value { font-size: .95rem; }
            .pmp-cta { flex-direction: column; text-align: center; }
        }
    