/**
 * Exoticloot Notifications Frontend Styles
 *
 * Modern, mobile-responsive dark theme matching Exoticloot brand aesthetic.
 * Colors: Deep Navy (#030e21 / #081e33), Emerald Green Accent (#22c55e), Slate (#94a3b8)
 *
 * @package Exoticloot_Notifications
 */

/* ==========================================================================
   1. Floating Bell Widget
   ========================================================================== */

.exoticloot-bell-widget {
    position: fixed;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.exoticloot-bell-widget.el-bell-bottom-right {
    bottom: 24px;
    right: 24px;
}

.exoticloot-bell-widget.el-bell-bottom-left {
    bottom: 24px;
    left: 24px;
}

/* Floating Bell Button */
.el-bell-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #081e33;
    color: #22c55e;
    border: 1.5px solid rgba(34, 197, 94, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    outline: none;
    position: relative;
}

.el-bell-button:hover {
    transform: translateY(-2px) scale(1.06);
    background: #0d2844;
    border-color: #22c55e;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.el-bell-button:active {
    transform: translateY(0) scale(0.96);
}

.el-bell-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.el-bell-button:hover .el-bell-icon {
    transform: rotate(12deg);
}

/* 24-Hour Dismiss Button on Bell */
.el-bell-dismiss {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #030e21;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.el-bell-dismiss:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.15);
}

/* ==========================================================================
   2. Top Pop-Up Prompt Banner (Deferred)
   ========================================================================== */

.el-top-banner {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    pointer-events: none; /* children enable pointer events */
}

.el-top-banner-card {
    pointer-events: auto;
    position: relative;
    background: rgba(8, 30, 51, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(34, 197, 94, 0.15);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    overflow: hidden;
}

.el-top-banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.8) 50%, transparent 100%);
}

.el-top-banner-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #22c55e;
}

.el-top-banner-text {
    flex: 1;
    min-width: 0;
}

.el-top-banner-title {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.el-top-banner-desc {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.35;
}

.el-top-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.el-btn-allow {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.el-btn-allow:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, #34d399 0%, #22c55e 100%);
}

.el-btn-allow:active {
    transform: translateY(0);
}

.el-btn-notnow {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.el-btn-notnow:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Slide Down / Up Animations */
.el-banner-slide-down {
    animation: elBannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.el-banner-slide-up {
    animation: elBannerSlideUp 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes elBannerSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes elBannerSlideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -24px) scale(0.96);
    }
}

/* ==========================================================================
   3. Modern Toast Messages
   ========================================================================== */

.el-status-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000000;
    background: #081e33;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(34, 197, 94, 0.18);
    font-size: 13.5px;
    font-weight: 500;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    pointer-events: auto;
}

.el-status-toast.is-success {
    border-color: rgba(34, 197, 94, 0.6);
}

.el-status-toast.is-warning {
    border-color: rgba(251, 191, 36, 0.6);
    color: #fef08a;
}

.el-status-toast.is-error {
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

.el-toast-slide-in {
    animation: elToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.el-toast-slide-out {
    animation: elToastSlideOut 0.25s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes elToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes elToastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
}

/* ==========================================================================
   4. Loading & Utility States
   ========================================================================== */

.el-fade-out {
    opacity: 0 !important;
    transform: scale(0.85) !important;
    transition: all 0.3s ease !important;
}

.el-pulse-loading {
    animation: elPulse 1s infinite alternate;
}

@keyframes elPulse {
    from { transform: scale(1); box-shadow: 0 0 12px rgba(34, 197, 94, 0.3); }
    to { transform: scale(1.12); box-shadow: 0 0 24px rgba(34, 197, 94, 0.7); }
}

.el-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: elSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes elSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. Mobile Responsiveness (Under 600px)
   ========================================================================== */

@media screen and (max-width: 600px) {
    .el-top-banner {
        top: 12px;
        width: calc(100% - 20px);
    }

    .el-top-banner-card {
        padding: 12px 14px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .el-top-banner-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .el-top-banner-icon-wrap svg {
        width: 20px;
        height: 20px;
    }

    .el-top-banner-title {
        font-size: 13.5px;
    }

    .el-top-banner-desc {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .el-top-banner-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
        gap: 8px;
    }

    .el-btn-allow,
    .el-btn-notnow {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 12.5px;
    }

    .exoticloot-bell-widget.el-bell-bottom-right {
        bottom: 18px;
        right: 18px;
    }

    .exoticloot-bell-widget.el-bell-bottom-left {
        bottom: 18px;
        left: 18px;
    }

    .el-status-toast {
        top: 12px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* ========================================================================== 
   6. Exoticloot UI Polish & Spacing Fixes (Appended overrides)
   Original styles above are intentionally preserved.
   ========================================================================== */

/* Consistent sizing prevents padding and borders from causing overflow. */
.exoticloot-bell-widget,
.exoticloot-bell-widget *,
.el-top-banner,
.el-top-banner *,
.el-status-toast,
.el-status-toast * {
    box-sizing: border-box;
}

/* Use the site's Inter UI font and keep text rendering crisp. */
.el-top-banner,
.el-status-toast,
.el-btn-allow,
.el-btn-notnow,
.el-bell-dismiss {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.el-top-banner-title {
    font-family: "Russo One", "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.el-top-banner-desc {
    font-size: 12.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Floating notification bell: cleaner shape, stable sizing and focus state. */
.exoticloot-bell-widget {
    width: max-content;
    max-width: calc(100vw - 32px);
}

.el-bell-button {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0b223b 0%, #030e21 100%);
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    -webkit-tap-highlight-color: transparent;
}

.el-bell-button:hover {
    background: linear-gradient(145deg, #123451 0%, #081e33 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 20px rgba(34, 197, 94, 0.2);
}

.el-bell-button:focus-visible,
.el-bell-dismiss:focus-visible,
.el-btn-allow:focus-visible,
.el-btn-notnow:focus-visible {
    outline: 2px solid #6ec1e4;
    outline-offset: 3px;
}

.el-bell-icon {
    display: block;
    flex: 0 0 auto;
}

#exoticloot-bell-container .el-bell-dismiss,
button.el-bell-dismiss {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    background: #030e21 !important;
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: all 0.2s ease !important;
}

#exoticloot-bell-container .el-bell-dismiss svg,
button.el-bell-dismiss svg {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    margin: auto !important;
    pointer-events: none !important;
}

#exoticloot-bell-container .el-bell-dismiss:hover,
button.el-bell-dismiss:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: scale(1.15) !important;
}

/* Top prompt: constrained width, predictable gaps and no accidental overflow. */
.el-top-banner {
    top: max(16px, env(safe-area-inset-top));
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    padding: 0;
    margin: 0;
}

.el-top-banner-card {
    width: 100%;
    min-width: 0;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(110, 193, 228, 0.18);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 30, 51, 0.98), rgba(3, 14, 33, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    align-items: center;
}

.el-top-banner-icon-wrap {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.22);
}

.el-top-banner-icon-wrap svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.el-top-banner-text {
    flex: 1 1 150px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.el-top-banner-title {
    margin: 0 0 4px;
}

.el-top-banner-desc {
    margin: 0;
}

.el-top-banner-actions {
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
}

#exoticloot-top-banner .el-btn-allow,
#exoticloot-top-banner .el-btn-notnow,
button.el-btn-allow,
button.el-btn-notnow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    box-sizing: border-box !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.2s ease !important;
}

#exoticloot-top-banner .el-btn-allow,
button.el-btn-allow {
    color: #ffffff !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25) !important;
}

#exoticloot-top-banner .el-btn-allow:hover,
button.el-btn-allow:hover {
    background: linear-gradient(135deg, #34d399 0%, #22c55e 100%) !important;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45) !important;
    transform: translateY(-1px) !important;
}

#exoticloot-top-banner .el-btn-notnow,
button.el-btn-notnow {
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    box-shadow: none !important;
    padding: 0 14px !important;
}

#exoticloot-top-banner .el-btn-notnow:hover,
button.el-btn-notnow:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
}

/* Toasts: readable, compact and safe when long messages wrap onto new lines. */
.el-status-toast {
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    width: max-content;
    max-width: min(380px, calc(100vw - 40px));
    min-width: 0;
    padding: 13px 16px;
    gap: 10px;
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(8, 30, 51, 0.98), rgba(3, 14, 33, 0.98));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
}

.el-status-toast.is-success {
    border-color: rgba(34, 197, 94, 0.48);
}

.el-status-toast.is-warning {
    border-color: rgba(251, 191, 36, 0.48);
    color: #fde68a;
}

.el-status-toast.is-error {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

/* Keep animations smooth without changing the existing animation names. */
.el-banner-slide-down,
.el-toast-slide-in {
    will-change: opacity, transform;
}

.el-banner-slide-up,
.el-toast-slide-out {
    will-change: opacity, transform;
}

@media screen and (max-width: 600px) {
    .el-top-banner {
        top: max(10px, env(safe-area-inset-top));
        width: calc(100vw - 24px);
        max-width: 520px;
    }

    .el-top-banner-card {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: center;
        gap: 10px 11px;
        padding: 13px;
        border-radius: 14px;
    }

    .el-top-banner-icon-wrap {
        grid-column: 1;
        grid-row: 1;
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 10px;
    }

    .el-top-banner-icon-wrap svg {
        width: 19px;
        height: 19px;
    }

    .el-top-banner-text {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
    }

    .el-top-banner-title {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 3px;
    }

    .el-top-banner-desc {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .el-top-banner-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        gap: 8px;
        margin: 1px 0 0;
    }

    #exoticloot-top-banner .el-btn-allow,
    #exoticloot-top-banner .el-btn-notnow,
    button.el-btn-allow,
    button.el-btn-notnow {
        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    .exoticloot-bell-widget.el-bell-bottom-right {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .exoticloot-bell-widget.el-bell-bottom-left {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .el-status-toast {
        top: max(10px, env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 12px 14px;
        gap: 9px;
        border-radius: 12px;
        font-size: 12.5px;
        line-height: 1.45;
    }
}

@media screen and (max-width: 360px) {
    .el-top-banner-card {
        gap: 9px;
        padding: 11px;
    }

    .el-top-banner-title {
        font-size: 12.5px;
    }

    .el-top-banner-desc {
        font-size: 11px;
    }

    .el-btn-allow,
    .el-btn-notnow {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 11.5px;
    }

    .el-status-toast {
        left: 8px;
        right: 8px;
        padding: 11px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exoticloot-bell-widget,
    .el-bell-button,
    .el-bell-icon,
    .el-bell-dismiss,
    .el-btn-allow,
    .el-btn-notnow {
        transition-duration: 0.01ms !important;
    }

    .el-banner-slide-down,
    .el-banner-slide-up,
    .el-toast-slide-in,
    .el-toast-slide-out,
    .el-pulse-loading,
    .el-loading-spinner,
    .el-modal-fade-in,
    .el-modal-fade-out {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   7. iOS Add to Home Screen Tutorial Modal (Strict Theme Isolation)
   ========================================================================== */

#el-ios-tutorial-modal.el-ios-tutorial-overlay,
.el-ios-tutorial-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    background: rgba(3, 7, 18, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.el-modal-fade-in {
    animation: elModalFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.el-modal-fade-out {
    animation: elModalFadeOut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes elModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes elModalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

#el-ios-tutorial-modal .el-ios-tutorial-card,
.el-ios-tutorial-card {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: calc(100vh - 40px) !important;
    background: #0f141c !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    padding: 22px 20px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(34, 197, 94, 0.12) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #f3f4f6 !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 auto !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-title {
    margin: 0 !important;
    font-family: "Russo One", "Inter", sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
}

/* Close button - wipe all theme styles with all: unset and high specificity */
#el-ios-tutorial-modal button.el-ios-tutorial-close,
.el-ios-tutorial-card button.el-ios-tutorial-close,
button#el-ios-tutorial-close-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #9ca3af !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

#el-ios-tutorial-modal button.el-ios-tutorial-close:hover,
#el-ios-tutorial-modal button.el-ios-tutorial-close:focus-visible {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    outline: none !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-desc {
    margin: 0 0 16px 0 !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: #9ca3af !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-step {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 11px 13px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-step-num {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    background: rgba(34, 197, 94, 0.16) !important;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    color: #22c55e !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-step-text {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.48 !important;
    color: #d1d5db !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-step-text strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-step-text svg {
    display: inline-block !important;
    vertical-align: -2px !important;
    margin: 0 3px !important;
    color: #22c55e !important;
}

#el-ios-tutorial-modal .el-ios-tutorial-footer {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 18px !important;
}

/* "Got it" button - strict theme isolation and centering */
#el-ios-tutorial-modal button.el-ios-tutorial-gotit,
.el-ios-tutorial-card button.el-ios-tutorial-gotit,
button#el-ios-tutorial-gotit-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    outline: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4) !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

#el-ios-tutorial-modal button.el-ios-tutorial-gotit:hover,
#el-ios-tutorial-modal button.el-ios-tutorial-gotit:focus-visible {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.5) !important;
    outline: none !important;
}

#el-ios-tutorial-modal button.el-ios-tutorial-gotit:active {
    transform: translateY(0) !important;
}

/* Copy Link button inside Step 1 for Chrome / non-Safari iOS */
#el-ios-tutorial-modal button.el-ios-copy-btn,
.el-ios-tutorial-card button.el-ios-copy-btn,
button#el-ios-copy-btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    color: #22c55e !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    margin-top: 6px !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease !important;
}

#el-ios-tutorial-modal button.el-ios-copy-btn:hover,
#el-ios-tutorial-modal button.el-ios-copy-btn:focus-visible {
    background: rgba(34, 197, 94, 0.25) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    color: #4ade80 !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

#el-ios-tutorial-modal button.el-ios-copy-btn:active {
    transform: translateY(0) !important;
}

@media screen and (max-width: 480px) {
    #el-ios-tutorial-modal .el-ios-tutorial-card {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    #el-ios-tutorial-modal .el-ios-tutorial-title {
        font-size: 15px !important;
    }

    #el-ios-tutorial-modal .el-ios-tutorial-desc {
        font-size: 12px !important;
    }

    #el-ios-tutorial-modal .el-ios-tutorial-step {
        padding: 9px 11px !important;
        gap: 10px !important;
    }

    #el-ios-tutorial-modal .el-ios-tutorial-step-text {
        font-size: 12px !important;
    }
}



