/**
 * Single Campaign Details Page Styles
 * Modern, responsive RTL design with theme compatibility
 */

/* CSS Variables - Inherit from theme or use fallback */
.altabraa-single-campaign {
    /* Colors - Use theme colors with fallbacks */
    --altabraa-primary-color: var(--wp--preset--color--primary, #667eea);
    --altabraa-secondary-color: var(--wp--preset--color--secondary, #764ba2);
    --altabraa-accent-color: var(--wp--preset--color--accent, #f5576c);
    --altabraa-text-color: var(--wp--preset--color--foreground, #1a202c);
    --altabraa-text-light: var(--wp--preset--color--tertiary, #64748b);
    --altabraa-background: var(--wp--preset--color--background, #ffffff);
    --altabraa-background-alt: var(--wp--preset--color--base, #f8f9fa);
    --altabraa-border-color: #e2e8f0;
    --altabraa-success-color: #10b981;
    --altabraa-error-color: #ef4444;
    
    /* Typography - Use theme fonts with fallbacks */
    --altabraa-font-family: var(--wp--preset--font-family--primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    --altabraa-font-heading: var(--wp--preset--font-family--heading, var(--altabraa-font-family));
    
    /* Spacing */
    --altabraa-spacing-xs: 0.5rem;
    --altabraa-spacing-sm: 0.75rem;
    --altabraa-spacing-md: 1rem;
    --altabraa-spacing-lg: 1.5rem;
    --altabraa-spacing-xl: 2rem;
    
    /* Border Radius */
    --altabraa-radius-sm: 8px;
    --altabraa-radius-md: 12px;
    --altabraa-radius-lg: 16px;
    --altabraa-radius-xl: 20px;
    --altabraa-radius-full: 9999px;
    
    /* Shadows */
    --altabraa-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --altabraa-shadow-md: 0 2px 12px rgba(0, 0, 0, 0.08);
    --altabraa-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --altabraa-shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Apply styles */
    background: var(--altabraa-background-alt);
    padding: 2rem 0;
    min-height: 100vh;
    font-family: var(--altabraa-font-family);
    color: var(--altabraa-text-color);
}

.altabraa-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--altabraa-spacing-lg);
}

/* Hero Section */
.altabraa-single-hero {
    background: var(--altabraa-background);
    border-radius: var(--altabraa-radius-lg);
    overflow: hidden;
    box-shadow: var(--altabraa-shadow-md);
    margin-bottom: var(--altabraa-spacing-xl);
}

.altabraa-single-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.altabraa-single-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.altabraa-single-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.altabraa-single-tags {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    direction: rtl;
}

.altabraa-single-tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--altabraa-primary-color);
    padding: var(--altabraa-spacing-xs) var(--altabraa-spacing-md);
    border-radius: var(--altabraa-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--altabraa-shadow-sm);
}

.altabraa-single-header {
    padding: var(--altabraa-spacing-xl);
    direction: rtl;
}

.altabraa-single-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--altabraa-text-color);
    margin: 0 0 var(--altabraa-spacing-md);
    line-height: 1.3;
    font-family: var(--altabraa-font-heading);
}

.altabraa-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--altabraa-spacing-lg);
    direction: rtl;
}

.altabraa-single-meta-item {
    display: flex;
    align-items: center;
    gap: var(--altabraa-spacing-xs);
    color: var(--altabraa-text-light);
    font-size: 0.95rem;
}

.altabraa-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Content Layout */
.altabraa-single-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    direction: rtl;
}

/* Sidebar - Donation Box */
.altabraa-single-sidebar {
    order: -1;
}

.altabraa-single-donation-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
}

/* Progress Section */
.altabraa-single-progress-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.altabraa-single-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.altabraa-single-raised,
.altabraa-single-goal {
    flex: 1;
    text-align: center;
}

.altabraa-single-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.altabraa-single-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.altabraa-single-value .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.altabraa-single-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.altabraa-single-progress-bar {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.altabraa-single-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 100px;
    transition: width 0.6s ease;
}

.altabraa-single-progress-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

/* Quick Amounts */
.altabraa-single-quick-amounts {
    margin-bottom: 1.5rem;
}

.altabraa-single-section-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.altabraa-single-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.altabraa-quick-amount-btn {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: row;
    direction: ltr;
}

.altabraa-quick-amount-btn .altabraa-quick-currency-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    order: -1;
}

.altabraa-quick-amount-btn .altabraa-quick-amount-value {
    font-size: 1rem;
    font-weight: 600;
    order: 0;
}

.altabraa-quick-amount-btn:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.altabraa-quick-amount-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.altabraa-currency-text {
    font-size: 0.875rem;
}

/* Custom Amount Input */
.altabraa-single-custom-amount {
    margin-bottom: 1.5rem;
}

.altabraa-single-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr;
}

.altabraa-currency-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 2;
}

.altabraa-single-amount-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #1a202c;
    text-align: right;
    direction: rtl;
    transition: all 0.2s ease;
}

.altabraa-single-amount-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Gift Section (Inline below amount) */
.altabraa-single-gift-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.altabraa-gift-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #10b981;
}

.altabraa-gift-icon {
    flex-shrink: 0;
}

.altabraa-gift-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #047857;
}

.altabraa-gift-remove {
    background: #ef4444;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.altabraa-gift-remove:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

.altabraa-gift-remove svg {
    fill: white;
}

.altabraa-gift-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.altabraa-gift-fields .altabraa-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.altabraa-gift-fields label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #064e3b;
}

.altabraa-gift-fields .required {
    color: #ef4444;
}

.altabraa-gift-input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #a7f3d0;
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
    direction: rtl;
}

.altabraa-gift-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.altabraa-gift-input::placeholder {
    color: #94a3b8;
}

/* Action Buttons */
.altabraa-single-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.altabraa-single-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.altabraa-single-btn .altabraa-icon {
    width: 20px;
    height: 20px;
}

.altabraa-single-btn-primary {
    background: linear-gradient(135deg, var(--altabraa-primary-color) 0%, var(--altabraa-secondary-color) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.altabraa-single-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.altabraa-single-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, var(--altabraa-accent-color) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.altabraa-single-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.altabraa-single-btn-outline {
    background: var(--altabraa-background);
    color: var(--altabraa-primary-color);
    border: 2px solid var(--altabraa-primary-color);
}

.altabraa-single-btn-outline:hover {
    background: var(--altabraa-primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.altabraa-single-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Unavailable Message */
.altabraa-single-unavailable {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Main Content */
.altabraa-single-main {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.altabraa-single-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.altabraa-single-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.altabraa-single-text p {
    margin-bottom: 1rem;
}

.altabraa-single-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 2rem 0 1rem;
}

.altabraa-single-text ul,
.altabraa-single-text ol {
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.altabraa-single-text li {
    margin-bottom: 0.5rem;
}

/* Success Message */
.altabraa-success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    direction: rtl;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .altabraa-single-content {
        grid-template-columns: 1fr;
    }
    
    .altabraa-single-sidebar {
        order: 0;
    }
    
    .altabraa-single-donation-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .altabraa-single-container {
        padding: 0 1rem;
    }
    
    .altabraa-single-image-wrapper {
        height: 300px;
    }
    
    .altabraa-single-header {
        padding: 1.5rem;
    }
    
    .altabraa-single-title {
        font-size: 1.5rem;
    }
    
    .altabraa-single-donation-box {
        padding: 1.5rem;
    }
    
    .altabraa-single-amounts {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .altabraa-single-value {
        font-size: 1.25rem;
    }
    
    .altabraa-single-quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .altabraa-single-main {
        padding: 1.5rem;
    }
    
    .altabraa-success-message {
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .altabraa-single-campaign {
        padding: 1rem 0;
    }
    
    .altabraa-single-image-wrapper {
        height: 200px;
    }
    
    .altabraa-single-title {
        font-size: 1.25rem;
    }
    
    .altabraa-single-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .altabraa-single-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Print Styles */
@media print {
    .altabraa-single-donation-box {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .altabraa-single-actions {
        display: none;
    }
}

/* ===================================
   Gift Modal Styles - Professional
   =================================== */

/* Prevent body scroll when modal is open */
body.altabraa-modal-open {
    overflow: hidden;
}

/* Modal Container */
.altabraa-gift-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999 !important;
    display: flex !important;
    display: -webkit-flex !important;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
    /* iOS Safari fix */
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.altabraa-gift-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Modal Overlay */
.altabraa-gift-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    /* iOS tap fix */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Modal Content */
.altabraa-gift-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(50px) scale(0.95);
    -webkit-transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    /* Performance */
    will-change: transform, opacity;
}

.altabraa-gift-modal.active .altabraa-gift-modal-content {
    transform: translateY(0) scale(1);
    -webkit-transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal Header */
.altabraa-gift-modal-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 2.5rem 2rem 2rem;
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.altabraa-gift-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.altabraa-gift-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: bounce 2s ease-in-out infinite;
}

.altabraa-gift-modal-icon svg {
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.altabraa-gift-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.altabraa-gift-modal-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
}

/* Close Button */
.altabraa-gift-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.altabraa-gift-modal-close svg {
    fill: #fff;
}

.altabraa-gift-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Modal Body */
.altabraa-gift-modal-body {
    padding: 2rem;
}

/* Form Group */
.altabraa-gift-form-group {
    margin-bottom: 1.5rem;
}

.altabraa-gift-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.altabraa-gift-label svg {
    flex-shrink: 0;
    fill: #f5576c;
}

.altabraa-required {
    color: #f5576c;
    font-size: 1.25rem;
    line-height: 1;
}

/* Input Fields */
.altabraa-gift-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #1a202c;
    transition: all 0.3s ease;
    text-align: right;
}

.altabraa-gift-input:focus {
    outline: none;
    border-color: #f5576c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 87, 108, 0.1);
}

.altabraa-gift-input::placeholder {
    color: #94a3b8;
}

.altabraa-gift-input.error {
    border-color: #ef4444;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Hint Text */
.altabraa-gift-hint {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Amount Display */
.altabraa-gift-amount-display {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.altabraa-gift-amount-display span {
    font-size: 1rem;
    color: #064e3b;
    font-weight: 600;
}

.altabraa-gift-amount-display strong {
    font-size: 1.5rem;
    color: #047857;
    font-weight: 700;
}

/* Modal Footer */
.altabraa-gift-modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    direction: rtl;
}

/* Modal Buttons */
.altabraa-gift-modal-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.altabraa-gift-modal-btn svg {
    width: 20px;
    height: 20px;
}

.altabraa-gift-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.altabraa-gift-cancel:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.altabraa-gift-confirm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.altabraa-gift-confirm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.altabraa-gift-confirm:hover::before {
    width: 300px;
    height: 300px;
}

.altabraa-gift-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.altabraa-gift-confirm:active {
    transform: translateY(0);
}

.altabraa-gift-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.altabraa-gift-confirm .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .altabraa-gift-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .altabraa-gift-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .altabraa-gift-modal-icon {
        width: 56px;
        height: 56px;
    }
    
    .altabraa-gift-modal-title {
        font-size: 1.5rem;
    }
    
    .altabraa-gift-modal-body {
        padding: 1.5rem;
    }
    
    .altabraa-gift-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column-reverse;
    }
    
    .altabraa-gift-modal-btn {
        width: 100%;
    }
}

/* Gift Modal Styles */
.altabraa-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.altabraa-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    direction: rtl;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.altabraa-modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.altabraa-modal-close:hover {
    background: #f8f9fa;
    color: #1a202c;
    transform: rotate(90deg);
}

.altabraa-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.altabraa-modal-title::before {
    content: '🎁';
    font-size: 2rem;
}

.altabraa-modal-description {
    color: #64748b;
    margin: 0 0 2rem;
    font-size: 1rem;
}

.altabraa-form-group {
    margin-bottom: 1.5rem;
}

.altabraa-form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.altabraa-form-group label .required {
    color: #f5576c;
    margin-right: 0.25rem;
}

.altabraa-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #1a202c;
    transition: all 0.2s ease;
    text-align: right;
}

.altabraa-form-group input:focus {
    outline: none;
    border-color: #f5576c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.altabraa-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.altabraa-btn-submit,
.altabraa-btn-cancel {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.altabraa-btn-submit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.altabraa-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.altabraa-btn-submit:hover::before {
    left: 100%;
}

.altabraa-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.altabraa-btn-submit:active {
    transform: translateY(0);
}

.altabraa-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.altabraa-btn-cancel {
    background: #fff;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.altabraa-btn-cancel:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .altabraa-modal-content {
        margin: 10% auto;
        padding: 2rem;
        width: 95%;
    }
    
    .altabraa-modal-title {
        font-size: 1.5rem;
    }
    
    .altabraa-form-actions {
        flex-direction: column;
    }
}
