/* ============================================
   Card Transfer Gateway - Frontend Styles
   Dark theme matching VibeHouse (#0D0D0F)
   ============================================ */

/* --- Checkout Page --- */

.ctgfree-payment-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #F5F5F7;
}
.ctgfree-payment-desc {
    font-size: 13px;
    color: #7B7B83;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(192,192,192,0.1);
}
.card-pay-gateway .card-number {
    display: block;
    clear: both;
    margin-bottom: 14px;
    margin-top: 14px;
    border: 2px dashed rgba(192,192,192,0.2);
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px;
    background: #151518;
    letter-spacing: 3px;
    font-size: 15px;
    font-weight: 600;
    color: #F5F5F7;
    direction: ltr;
}
.card-pay-gateway .card-number-owner-name {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #7B7B83;
}
.card-pay-gateway .card-number-owner-name b {
    margin-left: 4px;
}
.ctgfree-confirm-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(51,102,153,0.12);
    border: 1px solid rgba(51,102,153,0.3);
    border-radius: 6px;
    font-size: 12.5px;
    color: #6B9FD6;
}

/* --- Confirm Page Layout --- */

.ctgfree-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: IRANYekan, Vazirmatn, -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #F5F5F7;
}
.ctgfree-confirm-page {
    position: relative;
    margin-top: 60px;
}

/* Header */
.ctgfree-header {
    text-align: center;
    margin-bottom: 36px;
}
.ctgfree-header-icon {
    margin-bottom: 12px;
}
.ctgfree-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #F5F5F7;
    margin: 0 0 8px;
}
.ctgfree-header-sub {
    font-size: 14px;
    color: #9d9da5;
    margin: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.ctgfree-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.ctgfree-col {
    min-width: 0;
}

/* Cards */
.ctgfree-card {
    background: #16161A;
    border: 1px solid rgba(192,192,192,0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.ctgfree-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(192,192,192,0.08);
    background: #151518;
}
.ctgfree-card-head svg {
    flex-shrink: 0;
    color: #6B9FD6;
}
.ctgfree-card-head h3 {
    font-size: 14px;
    font-weight: 600;
    color: #F5F5F7;
    margin: 0;
}
.ctgfree-card-body {
    padding: 16px 20px;
}

/* Info Table */
.ctgfree-info-table {
    width: 100%;
    border: none !important;
}
.ctgfree-info-table tr {
    border: none !important;
}
.ctgfree-info-table td {
    padding: 6px 0 !important;
    border: none !important;
    font-size: 13.5px;
}
.ctgfree-label {
    color: #9d9da5;
    width: 120px;
}
.ctgfree-value {
    color: #F5F5F7;
    font-weight: 500;
}
.ctgfree-total {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #6B9FD6 !important;
}

/* Address */
.ctgfree-address {
    font-style: normal;
    font-size: 13.5px;
    line-height: 1.8;
    color: #C0C0C0;
}

/* Items Table */
.ctgfree-items-table {
    width: 100%;
    border: none !important;
    font-size: 13px;
}
.ctgfree-items-table thead th {
    padding: 6px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(192,192,192,0.1) !important;
    font-weight: 600;
    color: #9d9da5;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ctgfree-items-table tbody td,
.ctgfree-items-table tfoot td {
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(192,192,192,0.06) !important;
}
.ctgfree-items-table tfoot td {
    padding: 6px 0 !important;
    font-weight: 600;
}
.ctgfree-item-name {
    color: #C0C0C0;
}
.ctgfree-col-qty {
    width: 60px;
    text-align: center;
    color: #9d9da5;
}
.ctgfree-col-price {
    width: 100px;
    text-align: left;
    color: #E8E8EA;
    font-weight: 500;
}
.ctgfree-total-label {
    text-align: right;
    padding-right: 12px !important;
    color: #9d9da5;
}

/* Payment Card */
.ctgfree-card-payment {
    border-color: rgba(51,102,153,0.25);
    background: #151518;
}
.ctgfree-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.ctgfree-card-number-box,
.ctgfree-card-owner-box {
    background: #0D0D0F;
    border: 1px solid rgba(192,192,192,0.1);
    border-radius: 8px;
    padding: 12px 16px;
}
.ctgfree-box-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9d9da5;
    margin-bottom: 4px;
}
.ctgfree-box-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #F5F5F7;
    direction: ltr;
    letter-spacing: 2px;
}

/* Upload Zone */
.ctgfree-upload-zone {
    position: relative;
}
.ctgfree-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.ctgfree-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    border: 2px dashed rgba(192,192,192,0.2);
    border-radius: 10px;
    background: #0D0D0F;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}
.ctgfree-upload-zone:hover .ctgfree-upload-placeholder {
    border-color: #6B9FD6;
    background: rgba(51,102,153,0.1);
}
.ctgfree-upload-text {
    font-size: 13px;
    font-weight: 500;
    color: #C0C0C0;
}
.ctgfree-upload-hint {
    font-size: 11px;
    color: #6B6B73;
}
.ctgfree-file-name {
    margin-top: 8px;
    font-size: 12px;
    color: #6B9FD6;
    font-weight: 500;
    text-align: center;
}

/* Actions */
.ctgfree-actions {
    margin-top: 8px;
}
.ctgfree-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}
.ctgfree-btn-primary {
    background: linear-gradient(135deg, #B8C0C8 0%, #A0A8B0 50%, #C0C0C0 100%);
    color: #0D0D0F;
    box-shadow: 0 4px 14px rgba(192,192,192,0.2);
}
.ctgfree-btn-primary:hover {
    background: linear-gradient(135deg, #C8D0D8 0%, #B0B8C0 50%, #D0D0D0 100%);
    color: #0D0D0F;
    box-shadow: 0 6px 22px rgba(192,192,192,0.3);
    transform: translateY(-1px);
}
.ctgfree-btn-primary svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 820px) {
    .ctgfree-grid {
        grid-template-columns: 1fr;
    }
    .ctgfree-col-side {
        order: -1;
    }
    .ctgfree-wrapper {
        padding: 20px 14px 40px;
    }
    .ctgfree-header h1 {
        font-size: 22px;
    }
}

/* Contact Buttons */
.card-pay-gateway-telegram,
.card-pay-gateway-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #C0C0C0;
    background: #151518;
    border: 1px solid rgba(192,192,192,0.1);
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
}
.card-pay-gateway-telegram:hover,
.card-pay-gateway-whatsapp:hover {
    background: #1E1E23;
    color: #F5F5F7;
}
.card-pay-gateway-whatsapp svg,
.card-pay-gateway-telegram svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.card-pay-gateway-telegram svg path,
.card-pay-gateway-whatsapp svg path {
    fill: #C0C0C0;
    stroke: #C0C0C0;
    transition: fill 0.2s, stroke 0.2s;
}
.card-pay-gateway-telegram:hover svg path,
.card-pay-gateway-whatsapp:hover svg path {
    fill: #F5F5F7;
    stroke: #F5F5F7;
}
