/* ============================================
   UI UTILITIES - Shared CSS for consistent UI/UX
   ============================================ */

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
:root {
    --breakpoint-xs: 480px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;

    /* Consistent Aurora/Lighting Effect Values */
    --aurora-opacity: 0.35;
    --aurora-blur: 100px;
    --aurora-duration-1: 22s;
    --aurora-duration-2: 27s;
}

/* ============================================
   LOADING STATES - Prevent jarring state changes
   ============================================ */

/* Skeleton loading placeholder */
.skeleton-loader {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Content fade-in after loading */
.content-loading {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent flash of incorrect content */
.subscription-placeholder {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smooth state transitions */
.state-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lock overlay for features - prevents jarring locked/unlocked flash */
.feature-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 9, 28, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.feature-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   CONSISTENT AURORA/LIGHTING EFFECTS
   ============================================ */
.aurora-background::before,
.aurora-background::after {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: var(--aurora-opacity);
    filter: blur(var(--aurora-blur));
    will-change: transform;
    pointer-events: none;
}

.aurora-background::before {
    background: radial-gradient(circle at 10% 20%, var(--primary-blue, #4A00E0), transparent 45%);
    animation: auroraMove1 var(--aurora-duration-1) infinite alternate ease-in-out;
}

.aurora-background::after {
    background: radial-gradient(circle at 90% 80%, var(--primary-purple, #8A2BE2), transparent 45%);
    animation: auroraMove2 var(--aurora-duration-2) infinite alternate ease-in-out;
}

@keyframes auroraMove1 {
    0% {
        transform: translate(-15%, -15%) scale(1);
    }

    100% {
        transform: translate(15%, 15%) scale(1.15);
    }
}

@keyframes auroraMove2 {
    0% {
        transform: translate(15%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-10%, -12%) scale(1.2);
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Prevent content overflow */
.overflow-safe {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Responsive text truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive container */
.responsive-container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .responsive-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .responsive-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Responsive grid utilities */
.responsive-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   CONSISTENT SUBSCRIPTION DISPLAY
   ============================================ */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.subscription-badge.tier-free {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.subscription-badge.tier-pro {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.subscription-badge.tier-ultimate {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(236, 72, 153, 0.15));
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.subscription-badge .badge-icon {
    font-size: 0.9em;
}

.subscription-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.subscription-badge.tier-free .badge-dot {
    background: #94a3b8;
}

.subscription-badge.tier-pro .badge-dot {
    background: #a78bfa;
}

.subscription-badge.tier-ultimate .badge-dot {
    background: #fb923c;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

/* ============================================
   IMPROVED 2FA QR CODE DISPLAY
   ============================================ */
.twofa-setup-card {
    background: linear-gradient(145deg, rgba(22, 19, 58, 0.95), rgba(16, 14, 38, 0.9));
    border: 1px solid rgba(148, 163, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.twofa-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.twofa-qr-wrapper {
    position: relative;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(138, 43, 226, 0.15);
}

.twofa-qr-wrapper img {
    display: block;
    width: 180px;
    height: 180px;
}

.twofa-qr-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-purple, #8A2BE2), var(--primary-blue, #4A00E0));
    z-index: -1;
}

.twofa-secret-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
}

.twofa-secret-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #a0a0c0);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.twofa-secret-code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 1rem;
    letter-spacing: 0.15em;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #f0f0f0);
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.twofa-secret-code:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(138, 43, 226, 0.4);
}

.twofa-copy-hint {
    font-size: 0.7rem;
    color: var(--text-secondary, #a0a0c0);
    opacity: 0.7;
}

.twofa-instructions {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    text-align: left;
}

.twofa-instructions ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary, #a0a0c0);
    font-size: 0.85rem;
    line-height: 1.8;
}

.twofa-instructions li::marker {
    color: #22c55e;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE TABLE FIXES
   ============================================ */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 3px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.5);
}

/* ============================================
   CARD RESPONSIVE IMPROVEMENTS
   ============================================ */
.card-responsive {
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .card-responsive {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .card-responsive {
        padding: 1.75rem;
    }
}

/* ============================================
   MODAL RESPONSIVE IMPROVEMENTS
   ============================================ */
.modal-responsive {
    width: calc(100% - 2rem);
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    margin: 1rem;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .modal-responsive {
        width: 90%;
        max-height: calc(100vh - 4rem);
        margin: 2rem auto;
    }
}

/* ============================================
   FORM RESPONSIVE IMPROVEMENTS
   ============================================ */
.form-grid-responsive {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-grid-responsive .form-group-full {
    grid-column: 1 / -1;
}

/* ============================================
   BUTTON GROUP RESPONSIVE
   ============================================ */
.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .btn-group-responsive {
        flex-direction: column;
    }

    .btn-group-responsive .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   STATS GRID RESPONSIVE
   ============================================ */
.stats-grid-responsive {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .stats-grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   IMPROVED GIVEAWAY DISPLAY
   ============================================ */
.giveaway-card-enhanced {
    background: linear-gradient(145deg, rgba(22, 19, 58, 0.95), rgba(16, 14, 38, 0.9));
    border: 1px solid rgba(148, 163, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.giveaway-card-enhanced:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 15, 45, 0.4);
}

.giveaway-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.giveaway-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #f0f0f0);
    margin-bottom: 0.5rem;
}

.giveaway-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0c0);
}

.giveaway-body {
    padding: 1.5rem;
}

.giveaway-prize-display {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.giveaway-prize-tier {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.giveaway-prize-duration {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    margin-top: 0.5rem;
}

.giveaway-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 480px) {
    .giveaway-stats-grid {
        grid-template-columns: 1fr;
    }
}

.giveaway-stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.giveaway-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple, #a855f7);
}

.giveaway-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #a0a0c0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.giveaway-countdown {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.countdown-unit {
    text-align: center;
    min-width: 60px;
    padding: 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #f0f0f0);
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--text-secondary, #a0a0c0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   USER MANAGEMENT ORGANIZATION
   ============================================ */
.user-management-grid {
    display: grid;
    gap: 1.5rem;
}

.user-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface, rgba(22, 19, 58, 0.85));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 14px;
    transition: all 0.2s ease;
}

.user-card-compact:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(4px);
}

.user-avatar-enhanced {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(59, 130, 246, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.user-info-stack {
    flex: 1;
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.user-name-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #f0f0f0);
}

.user-email-text {
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0c0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.user-actions-compact {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ============================================
   MODERATOR MANAGEMENT PERMISSIONS UI
   ============================================ */
.permissions-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.permissions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.permissions-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
}

.permissions-group {
    margin-bottom: 1.5rem;
}

.permissions-group:last-child {
    margin-bottom: 0;
}

.permissions-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #a0a0c0);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.permissions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.permission-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05);
}

.permission-item.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.permission-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.permission-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.permission-item.active .permission-checkbox {
    background: #22c55e;
    border-color: #22c55e;
}

.permission-checkbox svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    color: white;
    transition: opacity 0.15s ease;
}

.permission-item.active .permission-checkbox svg {
    opacity: 1;
}

.permission-label {
    font-size: 0.8rem;
    color: var(--text-primary, #f0f0f0);
}

/* ============================================
   PAYMENT TRACKING RESPONSIVE
   ============================================ */
.payment-dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .payment-dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.payment-hero-card {
    background: linear-gradient(135deg, rgba(22, 19, 58, 0.95) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.payment-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .payment-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.payment-stat-card {
    background: var(--surface, rgba(22, 19, 58, 0.85));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.payment-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #a0a0c0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.payment-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #f0f0f0);
}

.payment-stat-sub {
    font-size: 0.75rem;
    color: var(--text-secondary, #a0a0c0);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(22, 19, 58, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.3s ease;
    max-width: 360px;
}

.toast.toast-success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.15);
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
}

.toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.15);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================
   DISCOUNT COUNTDOWN BANNER
   ============================================ */
.discount-banner {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(74, 0, 224, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.discount-banner-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.discount-badge svg {
    width: 16px;
    height: 16px;
}

.discount-text {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    min-width: 46px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.countdown-unit {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.countdown-separator {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(168, 85, 247, 0.6);
    animation: blink-separator 1s ease-in-out infinite;
}

@keyframes blink-separator {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Discount Price Styling */
.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.original-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.original-price .price-crossed {
    font-size: 1rem;
    text-decoration: line-through;
    opacity: 0.6;
}

.discount-tag {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.discounted-price {
    display: flex;
    align-items: baseline;
}

.discounted-price .price-amount {
    color: #22c55e;
}

@media (max-width: 600px) {
    .discount-banner {
        padding: 0.85rem;
        gap: 0.6rem;
    }

    .discount-banner-top {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .countdown-segment {
        min-width: 40px;
        padding: 0.35rem 0.5rem;
    }

    .countdown-value {
        font-size: 1rem;
    }
}