/**
 * Card to Card Payment Gateway - Ultra-Modern Persian RTL Stylesheet
 *
 * @package Card_To_Card_WooCommerce
 */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --c2c-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
    --c2c-primary: #2563eb;
    --c2c-primary-hover: #1d4ed8;
    --c2c-primary-light: #eff6ff;
    --c2c-accent: #10b981;
    --c2c-accent-hover: #059669;
    --c2c-warning: #f59e0b;
    --c2c-danger: #ef4444;
    --c2c-dark: #0f172a;
    --c2c-slate: #1e293b;
    --c2c-border: #e2e8f0;
    --c2c-text: #0f172a;
    --c2c-text-muted: #64748b;
    --c2c-radius-lg: 20px;
    --c2c-radius-md: 12px;
    --c2c-radius-sm: 8px;
    --c2c-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
    --c2c-shadow-card: 0 25px 50px -12px rgba(30, 58, 138, 0.45);
}

.c2c-payment-container {
    direction: rtl;
    text-align: right;
    font-family: var(--c2c-font) !important;
    max-width: 960px;
    margin: 35px auto;
    background: #ffffff;
    border-radius: var(--c2c-radius-lg);
    box-shadow: var(--c2c-shadow);
    border: 1px solid var(--c2c-border);
    overflow: hidden;
    line-height: 1.7;
    color: var(--c2c-text);
}

.c2c-payment-container * {
    box-sizing: border-box;
    font-family: var(--c2c-font);
}

/* SVG Icons Alignment */
.c2c-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Header Section */
.c2c-payment-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.c2c-payment-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

.c2c-header-title h2 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.c2c-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

.c2c-header-amount {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 14px;
    text-align: left;
    min-width: 180px;
}

.c2c-amount-label {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-bottom: 2px;
}

.c2c-amount-value {
    font-size: 24px;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

/* Expiry Countdown Timer */
.c2c-countdown-timer {
    background: #fffbeb;
    border-bottom: 1px solid #fef3c7;
    color: #b45309;
    padding: 12px 36px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.c2c-timer-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Main Content Grid */
.c2c-payment-body {
    padding: 36px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
}

@media (max-width: 860px) {
    .c2c-payment-body {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 28px;
    }
    .c2c-payment-header {
        padding: 24px;
    }
}

/* Bank Card Ultra-Modern Component */
.c2c-bank-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 60%, #0f172a 100%);
    color: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--c2c-shadow-card);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.c2c-bank-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
}

.c2c-bank-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 70%);
}

.c2c-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.c2c-bank-name {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Realistic Gold Contact Chip */
.c2c-card-chip {
    width: 48px;
    height: 36px;
    background: linear-gradient(135deg, #fef08a 0%, #ca8a04 50%, #eab308 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.35), 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.4);
}

.c2c-card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.2);
}

.c2c-card-number-wrapper {
    margin: 22px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.c2c-card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    letter-spacing: 3px;
    font-weight: 800;
    color: #ffffff;
    direction: ltr;
    display: inline-block;
    user-select: all;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.c2c-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.c2c-holder-label {
    font-size: 11px;
    color: #93c5fd;
    display: block;
    margin-bottom: 2px;
}

.c2c-holder-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.c2c-iban-box {
    margin-top: 6px;
    font-size: 12px;
    color: #cbd5e1;
    direction: ltr;
    font-family: monospace;
}

/* Copy Card Button */
.c2c-copy-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: var(--c2c-radius-md);
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.c2c-copy-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.c2c-copy-btn.copied {
    background: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* QR Code Section */
.c2c-qr-section {
    background: #f8fafc;
    border: 1px solid var(--c2c-border);
    border-radius: var(--c2c-radius-md);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.c2c-qr-wrapper {
    display: inline-block;
    padding: 14px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.c2c-qr-wrapper svg, .c2c-qr-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.c2c-qr-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.c2c-qr-desc {
    font-size: 12px;
    color: var(--c2c-text-muted);
}

/* Instructions Box */
.c2c-instructions-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--c2c-radius-md);
    padding: 20px;
    margin-bottom: 28px;
    color: #166534;
    font-size: 13px;
}

.c2c-instructions-box ol, .c2c-instructions-box ul {
    margin: 10px 20px 0 0;
    padding: 0;
}

.c2c-instructions-box li {
    margin-bottom: 6px;
}

/* Submission Form */
.c2c-form-group {
    margin-bottom: 22px;
}

.c2c-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1e293b;
}

.c2c-form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--c2c-border);
    border-radius: var(--c2c-radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #ffffff;
}

.c2c-form-control:focus {
    outline: none;
    border-color: var(--c2c-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Drag & Drop File Upload Dropzone */
.c2c-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--c2c-radius-md);
    padding: 28px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.c2c-dropzone:hover, .c2c-dropzone.dragover {
    border-color: var(--c2c-primary);
    background: var(--c2c-primary-light);
}

.c2c-dropzone-icon {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.c2c-dropzone-text {
    font-size: 14px;
    color: #334155;
    font-weight: 700;
}

.c2c-dropzone-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.c2c-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.c2c-preview-container {
    margin-top: 14px;
    display: none;
}

.c2c-preview-image {
    max-height: 160px;
    border-radius: var(--c2c-radius-sm);
    border: 1px solid #cbd5e1;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.c2c-remove-file {
    margin-top: 10px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: var(--c2c-danger);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.c2c-remove-file:hover {
    background: #fca5a5;
}

/* Primary Submit Button */
.c2c-submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--c2c-radius-md);
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.c2c-submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(16, 185, 129, 0.5);
}

.c2c-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Tracker Page */
.c2c-status-card {
    padding: 40px;
    text-align: center;
}

.c2c-status-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.c2c-status-pending .c2c-status-icon-wrap {
    background: #e0f2fe;
    color: #0284c7;
}

.c2c-status-approved .c2c-status-icon-wrap {
    background: #d1fae5;
    color: #059669;
}

.c2c-status-rejected .c2c-status-icon-wrap {
    background: #fee2e2;
    color: #dc2626;
}

.c2c-status-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.c2c-status-desc {
    color: var(--c2c-text-muted);
    font-size: 14px;
    max-width: 580px;
    margin: 0 auto 28px auto;
}

.c2c-status-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0284c7;
    animation: c2c-pulse 1.8s infinite;
}

@keyframes c2c-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* Downloads Section */
.c2c-downloads-container {
    background: #f8fafc;
    border: 1px solid var(--c2c-border);
    border-radius: var(--c2c-radius-md);
    padding: 26px;
    margin-top: 28px;
    text-align: right;
}

.c2c-downloads-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.c2c-download-item {
    background: #ffffff;
    border: 1px solid var(--c2c-border);
    border-radius: var(--c2c-radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.c2c-download-item:hover {
    transform: translateX(-4px);
}

.c2c-download-btn {
    background: #10b981;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.c2c-download-btn:hover {
    background: #059669;
    color: #ffffff;
}

/* Toast Message */
.c2c-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c2c-toast.show {
    opacity: 1;
}
