.ecas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
}

.ecas-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    background: #242424;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ecas-notice i {
    font-size: 24px;
    color: #de668b;
}

.ecas-notice p {
    margin: 0;
    font-size: 16px;
}

.ecas-notice-error {
    border-left: 4px solid #de668b;
}

.ecas-notice-success {
    border-left: 4px solid #4CAF50;
}

.ecas-notice-success i {
    color: #4CAF50;
}

.ecas-listing-grid {
    margin-top: 30px;
}

.ecas-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ecas-grid-item {
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #1b1b1b 100%);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.ecas-grid-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(222, 102, 139, 0.18);
    background: linear-gradient(180deg, #2e2e2e 0%, #202020 100%);
}

.ecas-grid-item h3 {
    background: linear-gradient(90deg, #de668b 0%, #ff9bb6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.ecas-grid-item p {
    margin: 4px 0;
    font-size: 16px;
    font-weight: 400;
}

.ecas-grid-item .queue-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ecas-grid-item .queue-time i {
    color: #de668b;
    margin-right: 5px;
}

.ecas-grid-item .time-ago {
    font-weight: 500;
    color: #fff;
}

/* Fast Pass Styling */
.ecas-grid-item.fast-pass {
    border: 2px solid #de668b;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25), 0 0 20px rgba(222, 102, 139, 0.3);
    background: linear-gradient(180deg, #2a2a2a 0%, #1b1b1b 100%), 
                linear-gradient(135deg, rgba(222, 102, 139, 0.1) 0%, transparent 50%);
}

.ecas-grid-item.fast-pass:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 30px rgba(222, 102, 139, 0.4);
}

.fast-pass-lightning {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #de668b, #ff8aa6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: lightning-pulse 4s infinite;
    box-shadow: 0 0 15px rgba(222, 102, 139, 0.6);
}

.fast-pass-lightning i {
    color: #fff;
    font-size: 14px;
    animation: lightning-bolt 3s infinite;
}

.fast-pass-badge {
    background: linear-gradient(45deg, #de668b, #ff8aa6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(222, 102, 139, 0.3);
}

.fast-pass-badge i {
    font-size: 10px;
}

@keyframes lightning-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(222, 102, 139, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(222, 102, 139, 0.8);
    }
}

@keyframes lightning-bolt {
    0%, 90%, 100% {
        transform: rotate(0deg);
    }
    5%, 15%, 25% {
        transform: rotate(-10deg);
    }
    10%, 20% {
        transform: rotate(10deg);
    }
}

/* Fast Pass Border Animation */
.ecas-grid-item.fast-pass::before {
    background: linear-gradient(135deg, #de668b 0%, #ff8aa6 50%, #de668b 100%);
    opacity: 0.6;
    animation: border-glow 3s infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.ecas-grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 90%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.ecas-grid-item-overlay i {
    font-size: 32px;
    color: #de668b;
    margin-bottom: 10px;
}

.ecas-grid-item-overlay .click-text,
.ecas-grid-item-overlay .tap-text {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

/* Show "Click to Accept" only on desktop */
.ecas-grid-item-overlay .tap-text {
    display: none;
}

/* Show "Tap to Accept" on tablets and mobile */
@media (max-width: 1024px) {
    .ecas-grid-item-overlay .click-text {
        display: none;
    }
    .ecas-grid-item-overlay .tap-text {
        display: block;
    }
}

.ecas-grid-item:hover .ecas-grid-item-overlay {
    opacity: 1;
}

/* Fancy gradient border and shine sweep */
.ecas-grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, #de668b 0%, #3d155d 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.ecas-grid-item:hover::before {
    opacity: 1;
}

.ecas-grid-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    transform: rotate(25deg);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: transform 0.6s ease;
    pointer-events: none;
}

.ecas-grid-item:hover::after {
    transform: translateX(260%) rotate(25deg);
}

.ecas-skeleton-loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ecas-skeleton-item {
    background: linear-gradient(90deg, #242424 25%, #3d155d 50%, #242424 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
    height: 200px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ecas-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
}

.ecas-modal-content {
    position: relative;
    background: #242424;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.7);
    opacity: 0;
    animation: modalZoomIn 0.3s ease forwards;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    margin: 0;
}

@keyframes modalZoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ecas-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: #de668b;
    background: rgba(222, 102, 139, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.ecas-modal-close:hover {
    background: rgba(222, 102, 139, 0.2);
    transform: rotate(90deg);
}

.ecas-modal-header {
    margin-bottom: 20px;
}

.ecas-modal-header h2 {
    color: #de668b;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.ecas-modal-body {
    margin-bottom: 30px;
}

.ecas-modal-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(61, 21, 93, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
}

.ecas-modal-detail i {
    color: #de668b;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.ecas-modal-detail span {
    font-size: 16px;
    font-weight: 400;
}

.ecas-modal-footer {
    margin-bottom: 20px;
}

.ecas-modal-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(222, 102, 139, 0.2);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.ecas-modal-progress-bar {
    height: 100%;
    background: #de668b;
    width: 100%;
    transition: width 0.1s linear;
}

.ecas-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #de668b;
}

.ecas-modal-icon.error {
    color: #de668b;
}

.ecas-modal-message {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.ecas-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    background: linear-gradient(45deg, #de668b, #ff8aa6);
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none !important;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(222, 102, 139, 0.3),
                0 2px 5px rgba(222, 102, 139, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ecas-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.ecas-button:hover {
    background: linear-gradient(45deg, #ff8aa6, #de668b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 102, 139, 0.4),
                0 4px 8px rgba(222, 102, 139, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.ecas-button:hover::before {
    left: 100%;
}

.ecas-button.disabled {
    background: linear-gradient(45deg, #666, #888);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ecas-button.disabled::before {
    display: none;
}

.ecas-button.error-acknowledge {
    background: linear-gradient(45deg, #3d155d, #de668b);
    margin-top: 20px;
    font-size: 16px;
    padding: 15px 30px;
}

.ecas-button.error-acknowledge:hover {
    background: linear-gradient(45deg, #de668b, #3d155d);
}

.ecas-button .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .ecas-container {
        padding: 10px;
    }

    .ecas-grid-container {
        grid-template-columns: 1fr;
    }

    .ecas-modal-content {
        padding: 20px;
    }

    .ecas-button {
        padding: 16px 30px;
        font-size: 16px;
    }
}