/* --- 1. WRAPPER & BASE --- */
.ph-fragment-wrapper { 
    padding: 25px 15px; 
    box-sizing: border-box;
}

/* --- 2. PAYMENT HISTORY BLOCK (Green Theme) --- */
.ph-summary-card { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
    padding: 25px; 
    border-radius: 24px; 
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    display:none;
}

.ph-title { font-size: 1.4rem; font-weight: 800; margin: 0; color: #ffffff; }
.ph-subtitle { font-size: 0.85rem; opacity: 0.9; margin: 5px 0 20px 0; color: #f0fff4; }

.ph-total-box { 
    background: rgba(255, 255, 255, 0.15); 
    padding: 15px; 
    border-radius: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ph-total-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 5px; }
.ph-total-val { font-size: 1.6rem; font-weight: 800; }
.ph-total-period { font-size: 0.7rem; opacity: 0.9; margin-left: 8px; }

/* --- 3. SECTION HEADERS (Original Blue) --- */
.ph-sec-head { 
    background: #0A66C2; 
    color: white; 
    padding: 18px 25px; 
    border-radius: 18px 18px 0 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 1.1rem; 
    font-weight: 800;
}

.ph-box { 
    background: white; 
    border-radius: 0 0 18px 18px; 
    margin-bottom: 25px; 
    border: 1px solid #e2e8f0; 
    border-top: none; 
}

/* --- 4. FILTER CONTENT (Updated for Full Width) --- */
.ph-filter-content { 
    padding: 20px; 
    box-sizing: border-box; 
}

.ph-filter-vertical { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.ph-input-group label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #64748b; 
    margin-bottom: 5px; 
}

.ph-input-group input { 
    width: 100%; /* Changed to Full Width */
    padding: 10px 12px; 
    border: 1px solid #cbd5e0; 
    border-radius: 10px; 
    font-family: inherit; 
    background: #fcfdfe;
    box-sizing: border-box; /* Ensures padding stays inside 100% width */
}

/* --- 5. GLOSSY POLISHED BUTTON (Updated for Full Width) --- */
.ph-filter-btn-glossy { 
    width: 100%; /* Changed to Full Width */
    padding: 12px; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    box-sizing: border-box; /* Added */
    background: rgba(10, 102, 194, 0.05);
    color: #0A66C2;
    border: 1px solid rgba(10, 102, 194, 0.4);
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

.ph-filter-btn-glossy:hover { 
    background: rgba(10, 102, 194, 0.1); 
    border-color: #0A66C2; 
}

/* --- 6. TRANSACTION ITEMS (Matching Profile Zebra Style) --- */
.ph-item { 
    display: flex; 
    flex-direction: column; 
    padding: 18px 25px; 
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
    box-shadow: inset 0 -10px 15px -10px rgba(0,0,0,0.03); 
    opacity: 0; 
    animation: profRowSlideUp 0.5s ease forwards;
}

.ph-item:nth-child(even) { background-color: #f8fafc; }
.ph-item:last-child { border-bottom: none; }

.ph-item-top, .ph-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.ph-item-top { margin-bottom: 12px; }

.ph-id { font-weight: 800; color: #0A66C2; display: block; }
.ph-desc { font-size: 0.8rem; color: #64748b; }
.ph-price { font-size: 1.1rem; font-weight: 800; color: #2d3436; }
.ph-date { font-size: 0.8rem; color: #94a3b8; font-weight: 600; }
.ph-date i { margin-right: 5px; }

/* --- 7. STATUS BUTTONS & BADGES --- */
.ph-status-btn { 
    border: none; padding: 6px 14px; border-radius: 8px; 
    font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; gap: 6px;
}
.status-success { background: #e6fffa; color: #38b2ac; }
.status-failed { background: #fff5f5; color: #f56565; }
.status-pending { background: #fffaf0; color: #ed8936; }
.ph-count-badge { background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; }

@keyframes profRowSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Additional styles for new filter components */
.ph-filter-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ph-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ph-input-group {
    flex: 1;
    min-width: 200px;
}

.ph-input-group-full {
    flex: 1 0 100%;
}

.ph-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ph-date-input,
.ph-select-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s;
}

.ph-date-input:focus,
.ph-select-input:focus {
    outline: none;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.ph-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ph-filter-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.ph-filter-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.ph-filter-status {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #0A66C2;
    font-size: 0.9rem;
    color: #1e293b;
}

.ph-loading-state {
    text-align: center;
    padding: 40px 20px;
}

.ph-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0A66C2;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ph-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.ph-empty-icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.ph-load-more-container {
    text-align: center;
    margin-top: 20px;
}

.ph-load-more-btn {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.ph-load-more-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}



<!-- Pagination Styles -->

.ph-load-more-container {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
}

.ph-load-more-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 14px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ph-load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ph-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ph-load-more-btn i {
    transition: transform 0.3s ease;
}

.ph-load-more-btn:hover:not(:disabled) i {
    transform: rotate(180deg);
}

/* Existing styles remain unchanged */
.ph-filter-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ph-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ph-input-group {
    flex: 1;
    min-width: 200px;
}

.ph-input-group-full {
    flex: 1 0 100%;
}

.ph-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ph-date-input,
.ph-select-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s;
}

.ph-date-input:focus,
.ph-select-input:focus {
    outline: none;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.ph-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ph-filter-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.ph-filter-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.ph-filter-status {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #0A66C2;
    font-size: 0.9rem;
    color: #1e293b;
}

.ph-loading-state {
    text-align: center;
    padding: 40px 20px;
}

.ph-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0A66C2;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ph-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.ph-empty-icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.ph-pagination-container {
    margin-top: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: none; /* Hidden by default */
}

.ph-pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.ph-pagination-info span {
    color: #1e293b;
    font-weight: 700;
}

.ph-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ph-pagination-btn {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 100px;
    justify-content: center;
    font-size: 0.9rem;
}

.ph-pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #0A66C2;
    color: #0A66C2;
}

.ph-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ph-page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.page-number-btn.active {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.page-dots {
    color: #94a3b8;
    padding: 0 5px;
    user-select: none;
    font-size: 0.9rem;
}

/* Existing styles remain unchanged */
.ph-filter-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ph-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ph-input-group {
    flex: 1;
    min-width: 200px;
}

.ph-input-group-full {
    flex: 1 0 100%;
}

.ph-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ph-date-input,
.ph-select-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s;
}

.ph-date-input:focus,
.ph-select-input:focus {
    outline: none;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.ph-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ph-filter-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.ph-filter-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.ph-filter-status {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #0A66C2;
    font-size: 0.9rem;
    color: #1e293b;
}

.ph-loading-state {
    text-align: center;
    padding: 40px 20px;
}

.ph-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0A66C2;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ph-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.ph-empty-icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 15px;
}


.ph-pagination-container {
    margin-top: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: none;
}

/* Page numbers at top */
.ph-page-numbers-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Navigation buttons centered below */
.ph-navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Records info below buttons */
.ph-pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.ph-pagination-info span {
    color: #1e293b;
    font-weight: 700;
}

.ph-pagination-btn {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
    font-size: 0.9rem;
}

.ph-pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #0A66C2;
    color: #0A66C2;
}

.ph-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.page-number-btn.active {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.page-dots {
    color: #94a3b8;
    padding: 0 8px;
    user-select: none;
    font-size: 0.9rem;
}

/* Hide buttons when not needed */
.ph-pagination-btn[style*="display: none"] {
    display: none !important;
}

/* Add to existing CSS file or style block */

/* Download button specific styles */
.ph-filter-btn-glossy:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
}

.ph-filter-btn-glossy:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

/* Download specific section */
.ph-download-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ph-download-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    text-align: center;
}

/* Orange & Blue Theme for Download Button */
#history-download-stmt-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: 2px solid #1e40af !important;
    color: white !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

#history-download-stmt-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

#history-download-stmt-btn:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    border-color: #475569 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Orange glow effect when enabled */
#history-download-stmt-btn:not(:disabled)::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f97316, #1e40af, #f97316);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: button-glow 3s ease infinite;
    opacity: 0.7;
}

@keyframes button-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon color */
#history-download-stmt-btn i {
    color: white;
    transition: transform 0.3s ease;
}

#history-download-stmt-btn:not(:disabled):hover i {
    transform: translateY(-2px);
}

/* Info note styling */
.ph-download-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background: #fff7ed;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

.ph-download-info i {
    color: #f97316;
    margin-right: 6px;
}


/* Add these styles to existing CSS section */

.ph-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#history-download-ac-copy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#history-download-ac-copy-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

#history-download-ac-copy-btn:not(:disabled)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 2s infinite;
}

.ph-download-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}


/* Download Buttons Container */
.ph-download-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Common button styles - SAME SIZE FOR BOTH */
.ph-download-btn {
    min-width: 200px; /* Same minimum width */
    height: 46px; /* Same height */
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #1e40af;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1; /* Make them flexible but same size */
    max-width: 220px; /* Same maximum width */
}

/* Statement button specific colors */
.ph-download-stmt {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.ph-download-stmt:not(:disabled):hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* A/C Copy button specific colors */
.ph-download-acopy {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.ph-download-acopy:not(:disabled):hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Disabled state - SAME FOR BOTH */
.ph-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    border-color: #475569;
}

/* Shimmer effect for enabled buttons */
.ph-download-btn:not(:disabled) {
    position: relative;
    overflow: hidden;
}

.ph-download-btn:not(:disabled)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 2s infinite;
}

/* Loading state */
.ph-download-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Download info note */
.ph-download-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 12px;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ph-download-info i {
    margin-right: 6px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .ph-download-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .ph-download-btn {
        width: 100%;
        max-width: 300px;
    }
}
