/* RDC Frontend Styles - Modern & Elegant */
.rdc-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    overflow: hidden;
    position: relative;
}

.rdc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.rdc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.rdc-card-head {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.rdc-card-head strong {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.rdc-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.rdc-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Card Body */
.rdc-card-body {
    padding: 25px;
    background: white;
}

.rdc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step-counter;
}

.rdc-steps li {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    counter-increment: step-counter;
    transition: all 0.3s ease;
}

.rdc-steps li:last-child {
    border-bottom: none;
}

.rdc-steps li:hover {
    background: #fafbff;
    margin: 0 -15px;
    padding: 18px 15px;
    border-radius: 10px;
}

.rdc-steps li::before {
    content: counter(step-counter);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 15px;
    flex-shrink: 0;
}

.rdc-steps .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    flex-shrink: 0;
}

.rdc-steps span {
    flex: 1;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.rdc-steps b {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
    direction: ltr;
    text-align: left;
    min-width: 120px;
}

.rdc-steps .rdc-round {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5eb 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    margin: 15px -10px -10px -10px;
    padding: 20px;
}

.rdc-steps .rdc-round::before {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.rdc-steps .rdc-round .dashicons {
    color: #ed8936;
}

/* Shortcode Styles */
.rdc-sc {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-width: 200px;
}

.rdc-sc:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rdc-sc-title {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.rdc-sc-value {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    direction: ltr;
}

.rdc-sc-value .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Ticker Styles */
.rdc-ticker {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 16px;
    padding: 0;
    margin: 20px 0;
    display: flex;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.rdc-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 100%;
    animation: tickerShine 4s linear infinite;
}

@keyframes tickerShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.rdc-tick {
    flex: 1;
    padding: 20px 25px;
    text-align: center;
    border-right: 1px solid #4a5568;
    position: relative;
    transition: all 0.3s ease;
    min-width: 160px;
}

.rdc-tick:last-child {
    border-right: none;
}

.rdc-tick:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.rdc-tick span {
    display: block;
    color: #cbd5e0;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rdc-tick b {
    display: block;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    direction: ltr;
}

.rdc-tick b .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Error States */
.rdc-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.rdc-sc.rdc-error,
.rdc-ticker.rdc-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #feb2b2;
    color: #c53030;
}

/* Price Animation */
.rdc-sc-value,
.rdc-tick b {
    position: relative;
}

.rdc-sc-value.updating::before,
.rdc-tick b.updating::before {
    content: '⟳';
    position: absolute;
    left: -25px;
    animation: spin 1s linear infinite;
    color: #667eea;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rdc-ticker {
        flex-wrap: wrap;
    }
    
    .rdc-tick {
        flex: 1 1 33.333%;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .rdc-card {
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .rdc-card-head {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .rdc-card-body {
        padding: 20px;
    }
    
    .rdc-steps li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }
    
    .rdc-steps li::before {
        margin-left: 0;
        margin-bottom: 5px;
    }
    
    .rdc-steps .dashicons {
        margin-left: 0;
        margin-bottom: 5px;
    }
    
    .rdc-steps b {
        align-self: flex-end;
        min-width: auto;
    }
    
    .rdc-steps li:hover {
        margin: 0 -10px;
        padding: 15px 10px;
    }
    
    .rdc-ticker {
        flex-direction: column;
    }
    
    .rdc-tick {
        border-right: none;
        border-bottom: 1px solid #4a5568;
        min-width: auto;
    }
    
    .rdc-tick:last-child {
        border-bottom: none;
    }
    
    .rdc-sc {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .rdc-card-head strong {
        font-size: 1.1rem;
    }
    
    .rdc-card-body {
        padding: 15px;
    }
    
    .rdc-steps span {
        font-size: 0.9rem;
    }
    
    .rdc-steps b {
        font-size: 1rem;
    }
    
    .rdc-sc {
        min-width: 160px;
        padding: 15px;
    }
    
    .rdc-sc-value {
        font-size: 1.2rem;
    }
    
    .rdc-tick {
        padding: 15px 20px;
    }
    
    .rdc-tick span {
        font-size: 0.8rem;
    }
    
    .rdc-tick b {
        font-size: 1.1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .rdc-card {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .rdc-card-head {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }
    
    .rdc-card-head strong {
        color: #e2e8f0;
    }
    
    .rdc-card-body {
        background: #2d3748;
    }
    
    .rdc-steps li {
        border-color: #4a5568;
    }
    
    .rdc-steps li:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .rdc-steps span {
        color: #cbd5e0;
    }
    
    .rdc-steps b {
        color: #e2e8f0;
    }
    
    .rdc-sc {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .rdc-sc-title {
        color: #a0aec0;
    }
    
    .rdc-sc-value {
        color: #e2e8f0;
    }
}

/* Loading Animation */
.rdc-loading {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.rdc-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Print Styles */
@media print {
    .rdc-card {
        box-shadow: none;
        border: 2px solid #e2e8f0;
    }
    
    .rdc-toggle {
        display: none;
    }
    
    .rdc-card-body {
        display: block !important;
    }
}