/**
 * 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-stack-item {
    box-sizing: border-box;
    padding: 0 0 18px 18px;
}

.cc-card-stack-item .cc-card-inner,
.cc-card-stack-item .cc-card-front {
    position: relative;
    z-index: 3;
}

.cc-card-stack-layer {
    position: absolute;
    inset: 0 0 18px 18px;
    border-radius: 16px;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.cc-card-stack-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(15,23,42,0.22));
}

.cc-card-stack-layer-empty {
    background: linear-gradient(145deg, #ffffff, #eef2f7);
}

.cc-card-stack-layer-1 {
    transform: translate(-8px, 8px) rotate(-4deg);
    z-index: 2;
}

.cc-card-stack-layer-2 {
    transform: translate(-16px, 16px) rotate(-8deg);
    z-index: 1;
}

.cc-card-duplicate-count {
    position: absolute;
    top: 0.85rem;
    left: 0.35rem;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.95), rgba(249, 115, 22, 0.96));
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.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;
    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;
    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;
    }
}

/* جلوگیری از اسکرول وقتی مودال باز است */
body.cc-modal-open {
    overflow: hidden;
}

/* ==========================================
   استایل Flip Card (کارت چرخشی) - نسخه فوق‌حرفه‌ای شیشه‌ای و 3D 💎✨
   ========================================== */
.cc-card-style-flip .cc-card-item {
    perspective: 2000px; /* عمق دید استثنایی برای ایجاد پرسپکتیو $3D$ واقعی */
    cursor: pointer;
    height: auto;
    position: relative;
    animation: ccFloatCard 6s ease-in-out infinite;
}

/* انیمیشن شناور بودن کارت در فضا */
@keyframes ccFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cc-card-style-flip .cc-card-inner {
    position: relative;
    width: 100%;
    /* استفاده از منحنی فنری بسیار جذاب برای چرخشی نرم و گیمینگ */
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

/* هاله نوری درخشان زیر کارت که با Hover نمایان می‌شود */
.cc-card-style-flip .cc-card-item::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(45deg, #FF6700, #8F54A2, #00d2ff, #FF6700);
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: ccGlowingBorder 3s linear infinite;
}

@keyframes ccGlowingBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cc-card-style-flip .cc-card-item:hover::before,
.cc-card-style-flip .cc-card-item.flipped::before {
    opacity: 0.75;
}

/* چرخش $180^\circ$ برای دیدن پشت کارت */
.cc-card-style-flip .cc-card-item.flipped .cc-card-inner {
    transform: rotateY(180deg);
}

/* ---------------- استایل پایه شیشه‌ای (Glassmorphism) ---------------- */
.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: 20px;
    /* فرمول بی‌نظیر شیشه کریستالی */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.cc-card-style-flip .cc-card-front {
    z-index: 2;
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* افکت رقص نور (Shine Sweep) که از روی عکس کارت رد می‌شود */
.cc-card-style-flip .cc-card-front::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.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    pointer-events: none;
}

.cc-card-style-flip .cc-card-item:hover .cc-card-front::after {
    transform: rotate(30deg) translateY(100%);
}

.cc-card-style-flip .cc-card-thumbnail,
.cc-card-style-flip .cc-card-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

/* زوم باکلاس هنگام Hover کردن */
.cc-card-style-flip .cc-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cc-card-style-flip .cc-card-item:hover .cc-card-thumbnail img {
    transform: scale(1.08);
}

.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;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border-radius: 12px;
}

/* دکمه "کلیک کنید" شناور و شیشه‌ای روی کارت */
.cc-card-style-flip .cc-card-front::before {
    content: 'برای مشاهده جزئیات بچرخون';
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.7rem 1.15rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    opacity: 0;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 12px 24px rgba(15,23,42,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 5;
}

.cc-card-style-flip .cc-card-item:hover .cc-card-front::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------- پشت کارت (هولوگرافیک و سه‌بعدی کامل) ---------------- */
.cc-card-style-flip .cc-card-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: rotateY(180deg) translateZ(1px); /* TranslateZ برای جلوگیری از باگ‌های رندرینگ شیشه */
    /* پس‌زمینه کهکشانی با تم نارنجی و بنفش */
    background: linear-gradient(135deg, rgba(143, 84, 162, 0.85) 0%, rgba(255, 103, 0, 0.85) 100%);
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* این خطوط المان‌های داخلی را به بیرون پرت می‌کنند! */
    transform-style: preserve-3d;
}

/* افکت نویز شیشه‌ای (Hologram Texture) برای حس واقعی بودن کارت */
.cc-card-style-flip .cc-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* --- پرتاب شدن المان‌ها به جلو در فضای 3D --- */
.cc-card-style-flip .cc-card-back-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transform: translateZ(80px); /* پرتاب شدن استثنایی آیکون به بیرون کارت به اندازه $80px$ */
    text-shadow: 0 15px 25px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.cc-card-style-flip .cc-card-back-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 1rem;
    transform: translateZ(60px); /* پرتاب شدن عنوان */
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.cc-card-style-flip .cc-card-back-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    transform: translateZ(40px); /* پرتاب شدن توضیحات */
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.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;
    transform: translateZ(50px); /* بیرون‌زدگی پنل آمار */
    background: rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.2);
}

.cc-card-style-flip .cc-card-back-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cc-card-style-flip .cc-card-back-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.cc-card-style-flip .cc-card-back-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.cc-card-style-flip .cc-card-back-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateZ(30px);
    font-size: 0.75rem;
    opacity: 0.8;
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    animation: pulseGlass 2s ease-in-out infinite;
}

/* بازچینی بخش پشت کارت تا محتوا روی هم نیفتد و ابعاد کارت ثابت بماند */
.cc-card-style-flip .cc-card-item {
    height: auto;
    min-height: 0;
}

.cc-card-style-flip .cc-card-inner {
    aspect-ratio: 2 / 3;
    min-height: 420px;
}

.cc-card-style-flip .cc-card-front,
.cc-card-style-flip .cc-card-back {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cc-card-style-flip .cc-card-back {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    transform: rotateY(180deg);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.cc-card-style-flip .cc-card-back-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cc-card-style-flip .cc-card-back-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #ffffff;
}

.cc-card-style-flip .cc-card-back-description {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.84);
    flex: 1 1 auto;
    overflow: hidden;
}

.cc-card-style-flip .cc-card-back-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0;
    padding: 0;
    border-top: 0;
    width: 100%;
    justify-content: stretch;
    transform: none;
    background: transparent;
    box-shadow: none;
}

.cc-card-style-flip .cc-card-back-stat {
    min-width: 0;
    padding: 0.85rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-card-style-flip .cc-card-back-stat-value {
    font-size: 1.2rem;
    text-align: center;
    word-break: break-word;
    text-shadow: none;
}

.cc-card-style-flip .cc-card-back-stat-label {
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}

.cc-card-style-flip .cc-card-back-hint {
    position: static;
    transform: none;
    align-self: center;
    margin-top: 0;
}

.cc-card-style-flip .cc-transfer-init-btn-back {
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.2rem;
    border: 0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.24);
    cursor: pointer;
    position: relative;
    z-index: 6;
    pointer-events: auto;
}

.cc-card-style-flip .cc-transfer-init-btn-back:hover {
    transform: translateY(-1px);
}

.cc-card-style-flip .cc-card-back-hint {
    margin-top: 0.15rem;
}

@keyframes pulseGlass {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 12px 3px rgba(255,255,255,0.2); }
}

/* ==========================================
   حالت موبایل و تبلت - ریسپانسیو (انتقال به انتها برای عملکرد صحیح)
   ========================================== */

/* تبلت - عمودی و افقی */
@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; }
    .cc-card-style-flip .cc-transfer-init-btn-back { font-size: 0.84rem; padding: 0.8rem 0.85rem; }
}

/* موبایل خیلی کوچک */
@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; }
}


/* ===== Redeem Vault Glass UI ===== */
.cc-redeem-stage.cc-redeem-tilt-wrap,
.cc-redeem-stage,
.cc-redeem-tilt-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    perspective: 1400px;
}

.cc-redeem-stage.cc-redeem-tilt-wrap::before,
.cc-redeem-stage.cc-redeem-tilt-wrap::after,
.cc-redeem-stage::before,
.cc-redeem-stage::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(56px);
    z-index: 0;
}

.cc-redeem-stage.cc-redeem-tilt-wrap::before,
.cc-redeem-stage::before {
    top: -48px;
    right: -36px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.34) 0%, rgba(249, 115, 22, 0) 72%);
}

.cc-redeem-stage.cc-redeem-tilt-wrap::after,
.cc-redeem-stage::after {
    bottom: -72px;
    left: -44px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0) 74%);
}

.cc-redeem-form,
.cc-redeem-form.cc-secret-card,
.cc-redeem-container .cc-redeem-form {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 0 auto;
    padding: 2.4rem 2rem !important;
    border-radius: 28px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        0 28px 60px rgba(2, 6, 23, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.cc-redeem-form::before,
.cc-redeem-form.cc-secret-card::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.04));
    pointer-events: none;
}

.cc-redeem-form::after,
.cc-redeem-form.cc-secret-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(234, 179, 8, 0.1), transparent 32%);
    pointer-events: none;
}

.cc-form-description.cc-card-subtitle,
.cc-form-description {
    position: relative;
    z-index: 1;
    color: rgba(226, 232, 240, 0.84) !important;
    font-size: 0.95rem;
    line-height: 1.9;
    margin: 0 0 1.75rem !important;
    text-align: center;
    text-wrap: balance;
}

.cc-form-group,
.cc-redeem-container .cc-form-group {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.cc-input-shell,
.cc-redeem-container .cc-input-shell {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.4rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 30px rgba(2, 6, 23, 0.2);
}

.cc-input-shell::before,
.cc-redeem-container .cc-input-shell::before {
    content: '';
    position: absolute;
    inset: 10px 14px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0.5;
}

.cc-input-shell .cc-input,
.cc-form-group .cc-input,
.cc-redeem-form .cc-input {
    background: rgba(2, 6, 23, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    box-shadow: inset 0 8px 18px rgba(0, 0, 0, 0.32);
}

.cc-input-shell .cc-input:focus,
.cc-form-group .cc-input:focus,
.cc-redeem-form .cc-input:focus {
    border-color: rgba(251, 146, 60, 0.72) !important;
    box-shadow:
        0 0 0 4px rgba(249, 115, 22, 0.12),
        0 0 28px rgba(249, 115, 22, 0.16),
        inset 0 8px 18px rgba(0, 0, 0, 0.32) !important;
}

.cc-message-container,
#cc-redeem-message,
.cc-redeem-message {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

.cc-message.cc-error,
#cc-redeem-message .cc-message.cc-error {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(153, 27, 27, 0.86)) !important;
    color: #fff1f2 !important;
    border: 1px solid rgba(254, 202, 202, 0.18) !important;
    border-radius: 18px !important;
    box-shadow:
        0 14px 30px rgba(127, 29, 29, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cc-message.cc-error::before,
#cc-redeem-message .cc-message.cc-error::before {
    content: '! ';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.cc-redeem-form .cc-button-primary,
.cc-form-group .cc-button-primary {
    min-height: 58px;
    border-radius: 16px !important;
    background: linear-gradient(90deg, #ea580c, #f59e0b, #ea580c) !important;
    background-size: 200% auto !important;
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.cc-redeem-form .cc-button-primary:hover,
.cc-form-group .cc-button-primary:hover {
    background-position: right center !important;
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.34);
}

@media (max-width: 640px) {
    .cc-redeem-form,
    .cc-redeem-form.cc-secret-card,
    .cc-redeem-container .cc-redeem-form {
        padding: 1.35rem !important;
        border-radius: 24px !important;
    }

    .cc-form-group,
    .cc-redeem-container .cc-form-group {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .cc-form-description.cc-card-subtitle,
    .cc-form-description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem !important;
    }
}



/* ===== Prize Reveal Ultra UI ===== */
.cc-modal-overlay,
.cc-modal {
    background: radial-gradient(circle at top, rgba(255,255,255,0.24), rgba(161, 140, 209, 0.24) 20%, rgba(251, 194, 235, 0.16) 38%, rgba(35, 16, 64, 0.72) 100%) !important;
}

.cc-modal-overlay {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.cc-modal-content.cc-reveal-modal,
.cc-reveal-modal,
.cc-modal-content .cc-card-reveal,
.cc-modal-content:has(.cc-card-reveal) {
    position: relative;
    width: min(100%, 400px) !important;
    max-width: 400px !important;
    margin: 0 auto;
    border-radius: 40px !important;
    padding: clamp(30px, 8vw, 50px) clamp(20px, 6vw, 35px) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1)) !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(30px) saturate(135%);
    -webkit-backdrop-filter: blur(30px) saturate(135%);
    transform-style: preserve-3d;
    overflow: visible !important;
    text-align: center;
    animation: cc-prize-super-pop 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.cc-modal-content.cc-reveal-modal::before,
.cc-reveal-modal::before,
.cc-modal-content .cc-card-reveal::before {
    content: '✨';
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 24px;
    opacity: 0.8;
    animation: cc-prize-float-star 3s infinite alternate ease-in-out;
}

.cc-modal-content.cc-reveal-modal::after,
.cc-reveal-modal::after,
.cc-modal-content .cc-card-reveal::after {
    content: '🌟';
    position: absolute;
    top: 40%;
    right: 5%;
    font-size: 30px;
    opacity: 0.84;
    animation: cc-prize-float-star 4s infinite alternate-reverse ease-in-out;
}

.cc-confetti {
    position: absolute !important;
    top: clamp(-60px, -15vw, -80px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(80px) !important;
    font-size: clamp(80px, 20vw, 110px) !important;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    animation: cc-prize-live-bounce 2.5s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
    z-index: 12;
}

.cc-confetti::before {
    content: '🎁' !important;
}

.cc-reveal-icon {
    display: none !important;
}

.cc-revealed-card-img,
.cc-revealed-card-image,
.cc-card-image {
    position: relative;
    z-index: 2;
    width: clamp(140px, 45vw, 180px) !important;
    height: clamp(180px, 60vw, 240px) !important;
    object-fit: cover !important;
    border-radius: 25px !important;
    margin: 30px auto 20px !important;
    padding: 6px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.2)) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
    transform: translateZ(50px);
}

.cc-revealed-card-img {
    display: block;
}

.cc-revealed-card-title,
.cc-card-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    font-weight: 900 !important;
    line-height: 1.3;
    margin: 0 0 8px !important;
    background: linear-gradient(to right, #240b36, #c31432) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    transform: translateZ(40px);
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

.cc-revealed-card-desc,
.cc-card-description {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 20px;
    border-radius: 25px;
    margin: 0 0 25px !important;
    font-size: clamp(14px, 4vw, 16px) !important;
    font-weight: 800;
    color: #fff !important;
    background: #c31432 !important;
    box-shadow: 0 4px 15px rgba(195, 20, 50, 0.4);
    transform: translateZ(35px);
}

.cc-revealed-points,
#cc-revealed-card-points,
.cc-card-points-badge,
.cc-revealed-card-points {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 30px !important;
    padding: clamp(12px, 3vw, 15px) clamp(15px, 4vw, 20px) !important;
    border-radius: 25px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #F9D423, #FF4E50) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 15px 30px rgba(255, 78, 80, 0.4), inset 0 2px 10px rgba(255,255,255,0.6) !important;
    transform: translateZ(60px);
    overflow: hidden;
}

.cc-revealed-points .cc-points-icon,
#cc-revealed-card-points .cc-points-icon,
.cc-card-points-badge .cc-points-icon,
.cc-points-icon {
    order: 1;
    font-size: clamp(28px, 8vw, 35px) !important;
    line-height: 1;
    animation: cc-prize-spin-coin 3s linear infinite;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}

.cc-revealed-points .cc-points-value,
#cc-revealed-card-points .cc-points-value,
.cc-card-points-badge .cc-points-value,
.cc-points-value {
    order: 2;
    font-size: clamp(28px, 8vw, 36px) !important;
    font-weight: 900 !important;
    line-height: 1;
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.cc-revealed-points .cc-points-label,
#cc-revealed-card-points .cc-points-label,
.cc-card-points-badge .cc-points-label,
.cc-points-label {
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.cc-revealed-points .cc-points-label:first-of-type,
#cc-revealed-card-points .cc-points-label:first-of-type,
.cc-card-points-badge .cc-points-label:first-of-type {
    order: 3;
    font-size: clamp(11px, 3vw, 13px) !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.cc-revealed-points .cc-points-label:last-of-type,
#cc-revealed-card-points .cc-points-label:last-of-type,
.cc-card-points-badge .cc-points-label:last-of-type {
    order: 4;
    margin-right: auto;
    font-size: clamp(12px, 3.5vw, 15px) !important;
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
}

#cc-close-modal,
.cc-close-modal,
.cc-close-reveal {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 80%;
    min-height: 56px;
    margin: 0 auto !important;
    border-radius: 30px !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    color: #fff !important;
    font-size: clamp(16px, 5vw, 20px) !important;
    font-weight: 900 !important;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.6) !important;
    transform: translateZ(45px);
    animation: cc-prize-pulse-btn 2s infinite alternate;
}

#cc-close-modal:active,
.cc-close-modal:active,
.cc-close-reveal:active {
    transform: translateZ(30px) scale(0.95) !important;
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.4) !important;
}

@keyframes cc-prize-super-pop {
    0% { transform: scale(0.2) translateY(150px) rotateX(45deg) rotateY(-45deg); opacity: 0; }
    60% { transform: scale(1.1) translateY(-20px) rotateX(-10deg) rotateY(10deg); opacity: 1; }
    80% { transform: scale(0.95) translateY(5px) rotateX(5deg) rotateY(-5deg); opacity: 1; }
    100% { transform: scale(1) translateY(0) rotateX(0) rotateY(0); opacity: 1; }
}

@keyframes cc-prize-live-bounce {
    0% { transform: translateX(-50%) translateZ(80px) translateY(0) rotate(-10deg) scale(1); }
    50% { transform: translateX(-50%) translateZ(80px) translateY(-25px) rotate(15deg) scale(1.15); }
    100% { transform: translateX(-50%) translateZ(80px) translateY(0) rotate(-10deg) scale(1); }
}

@keyframes cc-prize-float-star {
    0% { transform: translateZ(20px) translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateZ(40px) translateY(-15px) rotate(45deg) scale(1.2); }
}

@keyframes cc-prize-spin-coin {
    0% { transform: rotateY(0deg) scale(1); filter: brightness(1); }
    50% { transform: rotateY(180deg) scale(1.1); filter: brightness(1.3); }
    100% { transform: rotateY(360deg) scale(1); filter: brightness(1); }
}

@keyframes cc-prize-pulse-btn {
    0% { box-shadow: 0 0 15px rgba(0, 114, 255, 0.4); transform: translateZ(45px) scale(1); }
    100% { box-shadow: 0 0 30px rgba(0, 114, 255, 0.8), 0 0 10px #fff; transform: translateZ(45px) scale(1.03); }
}

@media (max-width: 480px) {
    .cc-modal-content.cc-reveal-modal,
    .cc-reveal-modal,
    .cc-modal-content .cc-card-reveal,
    .cc-modal-content:has(.cc-card-reveal) {
        padding: 34px 18px 26px !important;
        border-radius: 30px !important;
    }

    .cc-revealed-points,
    #cc-revealed-card-points,
    .cc-card-points-badge,
    .cc-revealed-card-points {
        gap: 8px;
        padding: 12px 14px !important;
    }

    #cc-close-modal,
    .cc-close-modal,
    .cc-close-reveal {
        width: 92%;
    }
}

