/**
 * Card Collector - Elementor Widgets Styles
 * استایل‌های ویجت‌های المنتور
 */

/* ==========================================
   متغیرهای پایه
   ========================================== */
:root {
    --cc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --cc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --cc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   ویجت فرم Redeem
   ========================================== */
.cc-redeem-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cc-redeem-form {
    /* Styles controlled by Elementor */
}

.cc-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cc-title-icon {
    font-size: 1.5rem;
}

.cc-form-description {
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.cc-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cc-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: var(--cc-transition);
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.cc-input:focus {
    outline: none;
}

.cc-button {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--cc-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cc-button-primary:hover {
    transform: translateY(-2px);
}

.cc-button-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cc-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}

.cc-message-container {
    margin-top: 1rem;
}

.cc-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.cc-message.cc-success {
    border: 1px solid currentColor;
}

.cc-message.cc-error {
    border: 1px solid currentColor;
}

.cc-message.cc-warning {
    border: 1px solid currentColor;
}

/* ==========================================
   ویجت کلکشن
   ========================================== */
.cc-collection-container {
    width: 100%;
}

.cc-collection-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cc-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-section-icon {
    font-size: 1.5rem;
}

.cc-collection-count {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.cc-user-points-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.cc-points-separator {
    opacity: 0.5;
}

.cc-collection-group {
    margin-bottom: 2rem;
}

.cc-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
}

.cc-cards-grid {
    display: grid;
}

.cc-card-item {
    position: relative;
}

.cc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.cc-card-front {
    position: relative;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: var(--cc-transition);
}

.cc-card-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cc-card-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-placeholder-icon {
    font-size: 4rem;
}

.cc-card-content {
    padding: 1.5rem;
}

.cc-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.cc-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-card-points-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cc-card-details-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cc-transition);
}

.cc-card-details-btn:hover {
    transform: translateY(-2px);
}

.cc-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.cc-badge-unlocked {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cc-empty-collection {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
}

.cc-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cc-empty-collection h4 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.cc-empty-collection p {
    margin: 0;
}

/* ==========================================
   ویجت امتیاز
   ========================================== */
.cc-user-points-widget {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
}

.cc-points-title {
    font-size: 1.25rem;
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.cc-points-display-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cc-points-icon-large {
    font-size: 48px;
}

.cc-points-info {
    text-align: right;
}

.cc-points-value-large {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.cc-points-label-large {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.cc-cards-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
}

.cc-cards-icon {
    font-size: 1.25rem;
}

.cc-cards-value {
    font-weight: 700;
}

/* Layouts */
.cc-layout-horizontal .cc-points-display-large {
    flex-direction: row;
}

.cc-layout-vertical .cc-points-display-large {
    flex-direction: column;
}

.cc-layout-vertical .cc-points-info {
    text-align: center;
}

.cc-layout-compact {
    padding: 15px 20px;
}

.cc-layout-compact .cc-points-display-large {
    gap: 0.5rem;
}

.cc-layout-compact .cc-points-icon-large {
    font-size: 24px;
}

.cc-layout-compact .cc-points-value-large {
    font-size: 24px;
}

/* ==========================================
   ویجت اشتراک‌گذاری
   ========================================== */
.cc-share-collection-widget {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
}

.cc-share-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cc-share-icon {
    font-size: 1.25rem;
}

.cc-share-description {
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

.cc-share-box {
    display: flex;
    gap: 0.75rem;
}

.cc-share-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: inherit;
    font-family: monospace;
    font-size: 0.875rem;
    text-align: left;
    direction: ltr;
}

.cc-button-copy {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cc-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cc-button-copy:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cc-share-qr {
    margin-top: 1.5rem;
}

.cc-qr-image {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

/* ==========================================
   ویجت آمار
   ========================================== */
.cc-card-stats-widget {
    border-radius: 16px;
    padding: 30px;
}

.cc-stats-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.cc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cc-stat-box {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--cc-transition);
}

.cc-stat-box:hover {
    transform: translateY(-4px);
}

.cc-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cc-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.cc-stat-label {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Stats Layouts */
.cc-stats-layout-horizontal .cc-stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

.cc-stats-layout-vertical .cc-stats-grid {
    grid-template-columns: 1fr;
}

.cc-stats-layout-vertical .cc-stat-box {
    display: flex;
    align-items: center;
    text-align: right;
    gap: 1rem;
}

.cc-stats-layout-vertical .cc-stat-icon {
    margin-bottom: 0;
}

.cc-stats-layout-grid .cc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ==========================================
   مودال جزئیات کارت
   ========================================== */
.cc-card-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.cc-card-details-modal.active {
    opacity: 1;
    visibility: visible;
}

.cc-card-details-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cc-card-details-modal.active .cc-card-details-content {
    transform: scale(1) translateY(0);
}

.cc-details-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--cc-transition);
}

.cc-details-close:hover {
    background: #e5e7eb;
}

.cc-details-header {
    padding: 30px 30px 20px;
    text-align: center;
}

.cc-details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.cc-details-collection-badge {
    display: inline-block;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cc-details-body {
    padding: 0 30px 20px;
}

.cc-details-image-wrapper {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.cc-details-image {
    width: 100%;
    display: block;
}

.cc-details-description {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cc-details-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cc-spec-card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.cc-spec-card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.cc-spec-card-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.cc-spec-card-value {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2px;
}

.cc-details-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.cc-button-view-page {
    display: inline-block;
    padding: 12px 24px;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--cc-transition);
}

.cc-button-view-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

/* ==========================================
   مودال نمایش کارت جدید - استایل مدرن
   ========================================== */
.cc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    animation: cc-modal-fade-in 0.3s ease forwards;
}

@keyframes cc-modal-fade-in {
    to { opacity: 1; }
}

.cc-reveal-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 20px 20px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    color: #1f2937;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    animation: cc-modal-pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes cc-modal-pop {
    to { 
        transform: scale(1) translateY(0);
    }
}

.cc-reveal-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: cc-pulse 3s ease-in-out infinite;
}

@keyframes cc-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cc-reveal-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    animation: cc-bounce-rotate 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 2;
}

@keyframes cc-bounce-rotate {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.cc-revealed-card-img {
    width: 100%;
    max-width: 460px;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: block;
    position: relative;
    z-index: 2;
    animation: cc-card-reveal 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
    transition: transform 0.3s ease;
}

.cc-revealed-card-img:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes cc-card-reveal {
    0% { 
        transform: translateY(30px) scale(0.8);
        opacity: 0;
    }
    100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cc-revealed-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    animation: cc-text-fade 0.5s ease 0.3s backwards;
}

.cc-revealed-card-desc {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 2;
    animation: cc-text-fade 0.5s ease 0.4s backwards;
}

@keyframes cc-text-fade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cc-revealed-points {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 
        0 10px 25px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: cc-points-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s backwards;
    transition: transform 0.3s ease;
}

.cc-revealed-points:hover {
    transform: translateY(-2px) scale(1.05);
}

@keyframes cc-points-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.cc-revealed-points .cc-points-icon {
    font-size: 1.5rem;
    animation: cc-star-spin 1s ease 0.6s;
}

@keyframes cc-star-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

.cc-reveal-modal .cc-button {
    position: relative;
    z-index: 2;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: cc-button-fade 0.5s ease 0.6s backwards;
}

@keyframes cc-button-fade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cc-button-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cc-button-secondary:hover {
    background: linear-gradient(135deg, #7c8eef 0%, #8757b0 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cc-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cc-confetti::before,
.cc-confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    animation: cc-confetti-fall 3s ease-out infinite;
}

.cc-confetti::before {
    left: 20%;
    animation-delay: 0s;
    background: #ff6b6b;
}

.cc-confetti::after {
    left: 80%;
    animation-delay: 0.5s;
    background: #4ecdc4;
}

@keyframes cc-confetti-fall {
    0% { 
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================
   حالت موبایل و تبلت - ریسپانسیو
   ========================================== */

/* تبلت - عمودی و افقی */
@media (max-width: 1024px) {
    .cc-collection-header {
        gap: 1rem;
    }

    .cc-section-title {
        font-size: 1.5rem;
    }

    .cc-user-points-display {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .cc-card-name {
        font-size: 1rem;
    }

    .cc-card-excerpt {
        font-size: 0.8rem;
    }
}

/* تبلت کوچک */
@media (max-width: 768px) {
    .cc-collection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cc-section-title {
        font-size: 1.25rem;
    }

    .cc-user-points-display {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
    }

    .cc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cc-stats-grid {
        grid-template-columns: 1fr;
    }

    .cc-share-box {
        flex-direction: column;
    }

    .cc-details-specs {
        grid-template-columns: 1fr;
    }

    .cc-card-details-content {
        max-height: 95vh;
    }

    .cc-card-name {
        font-size: 0.95rem;
    }

    .cc-card-excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    /* استایل flip در تبلت */
    .cc-card-style-flip .cc-card-front::before {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .cc-card-style-flip .cc-card-back {
        padding: 1.5rem;
    }

    .cc-card-style-flip .cc-card-back-title {
        font-size: 1.25rem;
    }

    .cc-card-style-flip .cc-card-back-description {
        font-size: 0.85rem;
    }

    .cc-card-style-flip .cc-card-back-stat-value {
        font-size: 1.25rem;
    }

    .cc-card-style-flip .cc-card-back-icon {
        font-size: 2.5rem;
    }
}

/* موبایل بزرگ */
@media (max-width: 640px) {
    .cc-collection-container {
        padding: 0;
    }

    .cc-section-title {
        font-size: 1.125rem;
    }

    .cc-collection-count {
        font-size: 0.875rem;
    }

    .cc-user-points-display {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .cc-points-value {
        font-size: 1.125rem;
    }

    .cc-cards-grid {
        gap: 0.875rem;
    }

    .cc-card-content {
        padding: 0.875rem;
    }

    .cc-empty-collection {
        padding: 3rem 1.5rem;
    }

    .cc-empty-icon {
        font-size: 3rem;
    }

    /* استایل flip در موبایل بزرگ */
    .cc-card-style-flip .cc-card-badge {
        top: 0.75rem;
        right: 0.75rem;
    }

    .cc-badge-unlocked {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .cc-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cc-section-title {
        font-size: 1rem;
    }

    .cc-user-points-display {
        font-size: 0.8rem;
        padding: 0.65rem 0.875rem;
    }

    .cc-card-name {
        font-size: 0.9rem;
    }

    .cc-card-content {
        padding: 0.75rem;
    }

    .cc-redeem-form {
        padding: 24px;
    }

    .cc-form-title {
        font-size: 1.25rem;
    }

    .cc-empty-collection h4 {
        font-size: 1rem;
    }

    .cc-empty-collection p {
        font-size: 0.875rem;
    }

    /* استایل flip در موبایل کوچک */
    .cc-card-style-flip .cc-card-front::before {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        bottom: 0.75rem;
    }

    .cc-card-style-flip .cc-card-back {
        padding: 1.25rem;
    }

    .cc-card-style-flip .cc-card-back-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .cc-card-style-flip .cc-card-back-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .cc-card-style-flip .cc-card-back-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .cc-card-style-flip .cc-card-back-stats {
        gap: 1rem;
        padding-top: 0.75rem;
    }

    .cc-card-style-flip .cc-card-back-stat-value {
        font-size: 1.125rem;
    }

    .cc-card-style-flip .cc-card-back-stat-label {
        font-size: 0.7rem;
    }

    .cc-card-style-flip .cc-card-back-hint {
        font-size: 0.7rem;
        bottom: 0.75rem;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {
    .cc-section-title {
        font-size: 0.95rem;
    }

    .cc-user-points-display {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .cc-points-value {
        font-size: 1rem;
    }

    .cc-card-name {
        font-size: 0.85rem;
    }

    .cc-card-excerpt {
        display: none;
    }

    .cc-card-content {
        padding: 0.625rem;
    }

    .cc-card-points-inline {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* جلوگیری از اسکرول وقتی مودال باز است */
body.cc-modal-open {
    overflow: hidden;
}

/* ==========================================
   استایل Flip Card (کارت چرخشی)
   ========================================== */
.cc-card-style-flip .cc-card-item {
    perspective: 1000px;
    cursor: pointer;
    height: auto;
}

.cc-card-style-flip .cc-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cc-card-style-flip .cc-card-item.flipped .cc-card-inner {
    transform: rotateY(180deg);
}

.cc-card-style-flip .cc-card-front,
.cc-card-style-flip .cc-card-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cc-card-style-flip .cc-card-front {
    z-index: 2;
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
}

.cc-card-style-flip .cc-card-thumbnail,
.cc-card-style-flip .cc-card-placeholder {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
}

.cc-card-style-flip .cc-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cc-card-style-flip .cc-card-content {
    display: none;
}

.cc-card-style-flip .cc-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

/* راهنمای کلیک در hover */
.cc-card-style-flip .cc-card-front::before {
    content: 'کلیک کنید 🔄';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.cc-card-style-flip .cc-card-item:hover .cc-card-front::before {
    opacity: 1;
}

.cc-card-style-flip .cc-card-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cc-card-style-flip .cc-card-back-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cc-card-style-flip .cc-card-back-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cc-card-style-flip .cc-card-back-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.cc-card-style-flip .cc-card-back-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    justify-content: center;
}

.cc-card-style-flip .cc-card-back-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cc-card-style-flip .cc-card-back-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.cc-card-style-flip .cc-card-back-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-card-style-flip .cc-card-back-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
}

/* افکت انیمیشن اضافی برای کارت flip */
.cc-card-style-flip .cc-card-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* نمایش نشانگر کلیک بر روی کارت */
.cc-card-style-flip .cc-card-front::after {
    display: none;
}

.cc-card-style-flip .cc-card-item:hover .cc-card-front::after {
    display: none;
}

