/* ═══════════════════════════════════════════════
   DASHBOARD MAIN — "Warm Neutral Premium" Design System
   Inspired by: Apple, Notion, Linear
   Target: Professional public servants (Colombia)
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────── */
:root {
    --bg-primary: #F8F7F4;
    --bg-secondary: #F0EBE1;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-card-solid: #FFFFFF;

    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --text-accent: #1E3A5F;

    --accent-primary: #1E3A5F;
    --accent-primary-light: rgba(30, 58, 95, 0.08);
    --accent-success: #059669;
    --accent-success-light: rgba(5, 150, 105, 0.08);
    --accent-warning: #D97706;
    --accent-warning-light: rgba(217, 119, 6, 0.08);
    --accent-danger: #DC2626;
    --accent-danger-light: rgba(220, 38, 38, 0.06);

    --border-light: rgba(28, 25, 23, 0.11);
    --border-medium: rgba(28, 25, 23, 0.22);

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 4px 14px rgba(28, 25, 23, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06), 0 14px 32px rgba(28, 25, 23, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --shadow-lg: 0 12px 28px rgba(28, 25, 23, 0.08), 0 28px 64px rgba(28, 25, 23, 0.10);
    --shadow-glow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 14px 34px rgba(15, 23, 42, 0.08);

    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-full: 0px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', var(--font-sans);
}

/* ── Base (Native App Ready) ───────────────────── */
body.dm-body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-tap-highlight-color: transparent;
}

.dm-main-container {
    min-height: 100vh;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 40px calc(36px + env(safe-area-inset-bottom, 0px));
    max-width: 1080px;
    margin: 0 auto;
    animation: dm-view-enter 0.55s var(--ease-spring) forwards;
}

@keyframes dm-view-enter {
    from { opacity: 0; transform: scale(0.992) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Subtle warm ambient mesh background */
.dm-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 15% -5%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 105%, rgba(5, 150, 105, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 40%, rgba(245, 158, 11, 0.02) 0%, transparent 65%),
        var(--bg-primary);
}

/* ── Solid Premium Card ────────────────────────────────── */
.dm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.36s var(--ease-spring), box-shadow 0.36s var(--ease-spring), border-color 0.25s ease, background 0.25s ease;
    will-change: transform, box-shadow;
}

.dm-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-medium);
}

.dm-card-interactive {
    cursor: pointer;
    user-select: none;
}

.dm-card-interactive:active,
.dm-mode-card:active {
    transform: translateY(0) scale(0.986) !important;
    transition-duration: 0.1s;
}

.dm-card-solid {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: 0px;
    box-shadow: var(--shadow-sm);
}

/* ── Typography ────────────────────────────────── */
.dm-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.dm-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.dm-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dm-stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* ── Badges ────────────────────────────────────── */
.dm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dm-badge-success {
    background: var(--accent-success-light);
    color: var(--accent-success);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.dm-badge-warning {
    background: var(--accent-warning-light);
    color: var(--accent-warning);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.dm-badge-accent {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    border: 1px solid rgba(30, 58, 95, 0.18);
}

/* ── Buttons ───────────────────────────────────── */
.dm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #0F172A;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.dm-btn-primary:hover {
    background: #0F172A;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.32);
    transform: translateY(-1px);
}

.dm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8125rem;
    border: 1px solid var(--border-light);
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dm-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

/* ── Progress Bars (with Liquid Shimmer) ───────── */
.dm-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(28, 25, 23, 0.065);
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dm-progress-fill {
    height: 100%;
    border-radius: 0px;
    transition: width 1.3s var(--ease-spring);
    background: linear-gradient(90deg, #0F172A 0%, var(--accent-primary) 50%, #C59B27 100%);
    position: relative;
    overflow: hidden;
}

.dm-progress-fill::after,
.dm-guia-bar-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.42) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: dm-liquid-shimmer 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dm-liquid-shimmer {
    0% { transform: translateX(-100%); }
    65%, 100% { transform: translateX(100%); }
}

.dm-progress-fill-success {
    background: linear-gradient(90deg, var(--accent-success), #34D399);
}

/* ── Mode Cards (Interactive Apple/Linear Polish) ── */
.dm-mode-card {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 0px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    cursor: pointer;
    user-select: none;
    transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-spring), border-color 0.28s ease;
}

.dm-mode-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at 92% 50%, rgba(30, 58, 95, 0.055), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.dm-mode-card:hover {
    border-color: rgba(30, 58, 95, 0.45);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.dm-mode-card:hover::before {
    opacity: 1;
}

.dm-mode-card.dm-mode-elite::before {
    background: radial-gradient(500px circle at 92% 50%, rgba(234, 179, 8, 0.09), transparent 70%);
}

.dm-mode-card.dm-mode-elite:hover {
    border-color: rgba(234, 179, 8, 0.55);
    box-shadow: 0 4px 18px rgba(234, 179, 8, 0.14), 0 14px 36px rgba(234, 179, 8, 0.10);
}

/* Mode Icon Box */
.dm-mode-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 0px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.10), rgba(30, 58, 95, 0.04));
    border: 1px solid rgba(30, 58, 95, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-spring), background 0.3s ease;
}

.dm-mode-card:hover .dm-mode-icon-box {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.dm-mode-card.dm-mode-elite .dm-mode-icon-box {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.07));
    border-color: rgba(234, 179, 8, 0.25);
}

.dm-mode-card.dm-mode-elite:hover .dm-mode-icon-box {
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.22);
}

/* Mode Metadata Pills */
.dm-mode-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dm-mode-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(28, 25, 23, 0.038);
    border: 1px solid rgba(28, 25, 23, 0.085);
    padding: 3px 9px;
    border-radius: 0px;
    line-height: 1.2;
}

/* Mode Play Action Button */
.dm-mode-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 0px;
    background: rgba(30, 58, 95, 0.07);
    border: 1px solid rgba(30, 58, 95, 0.20);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s var(--ease-spring);
}

.dm-mode-card:hover .dm-mode-play-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #FFFFFF;
    transform: translateX(4px) scale(1.06);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

.dm-mode-card.dm-mode-elite .dm-mode-play-btn {
    background: rgba(217, 119, 6, 0.10);
    border-color: rgba(217, 119, 6, 0.24);
    color: #D97706;
}

.dm-mode-card.dm-mode-elite:hover .dm-mode-play-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-color: #D97706;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

/* Locked State (Refined Frosted Glass) */
.dm-mode-card.dm-locked {
    opacity: 0.88;
    cursor: pointer;
}

.dm-mode-card.dm-locked:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.dm-mode-card.dm-locked:hover::before {
    opacity: 0;
}

.dm-lock-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 247, 244, 0.72) 0%, rgba(248, 247, 244, 0.92) 55%, rgba(248, 247, 244, 0.96) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    border-radius: 0px;
    padding: 12px 20px;
    text-align: center;
}

.dm-lock-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(28, 25, 23, 0.14);
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06);
    padding: 5px 12px;
    border-radius: 0px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Special Widget Cards (Clean CSS Hover States) ── */
.dm-mentor-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(30, 58, 95, 0.24);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.045) 0%, rgba(255, 255, 255, 0.96) 60%, rgba(212, 175, 55, 0.04) 100%);
    position: relative;
}

.dm-mentor-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.dm-mentor-bar {
    height: 3px;
    background: linear-gradient(90deg, #0F172A, #C59B27, #1E3A5F, #0F172A);
    background-size: 200% 100%;
    animation: dm-gradient-flow 4s linear infinite;
    opacity: 0.9;
}

@keyframes dm-gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.dm-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: dm-live-pulse 2s infinite;
}

@keyframes dm-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Banco de Preguntas & Simulacro Personalizado Cards */
.dm-banco-card {
    padding: 0;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid rgba(5, 150, 105, 0.18);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.04) 0%, #FFFFFF 75%);
    cursor: pointer;
}

.dm-banco-card:hover {
    border-color: rgba(5, 150, 105, 0.42);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.dm-banco-card:hover .dm-feature-arrow {
    transform: translateX(4px);
    background: #059669;
    color: #FFFFFF;
}

.dm-custom-sim-card {
    padding: 0;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.045) 0%, #FFFFFF 75%);
    cursor: pointer;
}

.dm-custom-sim-card:hover {
    border-color: rgba(217, 119, 6, 0.48);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.dm-custom-sim-card:hover .dm-feature-arrow {
    transform: translateX(4px);
    background: #D97706;
    color: #FFFFFF;
}

.dm-feature-arrow {
    width: 36px;
    height: 36px;
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.32s var(--ease-spring);
}

/* Medal Stat Mini Cards */
.dm-medal-stat-card {
    padding: 10px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.dm-medal-svg-wrap {
    width: 30px;
    height: 30px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-spring);
}

.dm-medal-stat-card:hover .dm-medal-svg-wrap {
    transform: scale(1.12) translateY(-1px);
}

/* Tool & Analysis Sidebar Buttons */
.dm-tool-card {
    padding: 11px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    user-select: none;
}

.dm-tool-card:hover {
    border-color: rgba(30, 58, 95, 0.40);
    background: #FFFFFF;
    color: var(--accent-primary);
}

.dm-analysis-cta {
    padding: 15px 16px;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(30, 58, 95, 0.32);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08), rgba(30, 58, 95, 0.03));
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.dm-analysis-cta:hover {
    background: linear-gradient(135deg, #0F172A, var(--accent-primary));
    border-color: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
    transform: translateY(-2px);
}

/* ── Avatar Overlay ────────────────────────────── */
.dm-avatar-wrapper:hover .dm-avatar-overlay {
    opacity: 1 !important;
}

.dm-avatar-edit-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s var(--ease-spring), border-color 0.2s ease;
    z-index: 10;
    color: var(--text-secondary);
}

.dm-avatar-wrapper:hover .dm-avatar-edit-badge {
    transform: scale(1.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ── Medal Icons (SVG Professional) ────────────── */
.dm-medal-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
}

.dm-medal-bronze { background: rgba(205, 127, 50, 0.12); }
.dm-medal-silver { background: rgba(148, 163, 184, 0.14); }
.dm-medal-gold   { background: rgba(234, 179, 8, 0.14); }
.dm-medal-diamond { background: rgba(56, 189, 248, 0.14); }

/* ── Mentor Chat ───────────────────────────────── */
.dm-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.dm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.dm-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.dm-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

.dm-chat-bubble-mentor {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 90%;
    margin-bottom: 0.75rem;
}

.dm-chat-bubble-user {
    background: var(--accent-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.875rem;
    max-width: 80%;
    margin-left: auto;
    margin-bottom: 0.75rem;
}

.dm-chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.dm-chat-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.dm-chat-input:focus {
    border-color: var(--accent-primary);
}

.dm-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dm-chat-send-btn:hover {
    background: #0F172A;
    transform: scale(1.05);
}

/* ── Quick Access Buttons ──────────────────────── */
.dm-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 1rem;
    border-radius: 0px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text-secondary);
}

.dm-quick-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.dm-quick-btn span:first-child {
    font-size: 1.5rem;
    transition: transform 0.25s;
}

.dm-quick-btn:hover span:first-child {
    transform: scale(1.15);
}

/* ── Loading Screen (Premium Orb Pulse) ────────── */
.dm-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.dm-loader-orb-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-loader-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(30, 58, 95, 0.22);
    border-top-color: var(--accent-primary);
    animation: dm-orb-spin 1.1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.dm-loader-orb-core {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #0F172A);
    box-shadow: 0 0 20px rgba(30, 58, 95, 0.40);
    animation: dm-orb-breathe 1.8s ease-in-out infinite;
}

@keyframes dm-orb-spin {
    to { transform: rotate(360deg); }
}

@keyframes dm-orb-breathe {
    0%, 100% { transform: scale(0.88); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

.dm-loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    margin: 0 4px;
    animation: dm-bounce 1.4s ease-in-out infinite both;
}

.dm-loader-dot:nth-child(1) { animation-delay: -0.32s; }
.dm-loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dm-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── Modal Backdrop ────────────────────────────── */
.dm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 25, 23, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
}

.dm-modal-content {
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
}

/* ── Animations (Spring Cascade) ───────────────── */
@keyframes dm-fade-in {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dm-animate-in {
    animation: dm-fade-in 0.55s var(--ease-spring) forwards;
}

/* Stagger children animation (supports individual cards in columns) */
.dm-stagger > *,
.dm-stagger-col > * {
    opacity: 0;
    animation: dm-fade-in 0.55s var(--ease-spring) forwards;
}
.dm-stagger > *:nth-child(1), .dm-stagger-col > *:nth-child(1) { animation-delay: 0.04s; }
.dm-stagger > *:nth-child(2), .dm-stagger-col > *:nth-child(2) { animation-delay: 0.09s; }
.dm-stagger > *:nth-child(3), .dm-stagger-col > *:nth-child(3) { animation-delay: 0.14s; }
.dm-stagger > *:nth-child(4), .dm-stagger-col > *:nth-child(4) { animation-delay: 0.19s; }
.dm-stagger > *:nth-child(5), .dm-stagger-col > *:nth-child(5) { animation-delay: 0.24s; }
.dm-stagger > *:nth-child(6), .dm-stagger-col > *:nth-child(6) { animation-delay: 0.29s; }
.dm-stagger > *:nth-child(7), .dm-stagger-col > *:nth-child(7) { animation-delay: 0.34s; }
.dm-stagger > *:nth-child(8), .dm-stagger-col > *:nth-child(8) { animation-delay: 0.39s; }

/* ── Responsive Grid Classes ─────────────────────── */
.dm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.dm-grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dm-grid-stats-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Responsive (Desktop, Tablet & Mobile Native) ── */
@media (max-width: 1024px) {
    .dm-main-container {
        padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
    }
    .dm-grid-main {
        grid-template-columns: 280px 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .dm-main-container {
        padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(96px + env(safe-area-inset-bottom, 0px));
    }
    .dm-grid-main {
        grid-template-columns: 1fr !important;
    }
    .dm-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }
    .dm-header > div:last-child {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .dm-mode-card.dm-card {
        padding: 16px !important;
    }
    .dm-mode-icon-box {
        width: 46px !important;
        height: 46px !important;
        font-size: 22px !important;
        border-radius: 0px !important;
    }
    .dm-mode-play-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 480px) {
    .dm-grid-stats, .dm-grid-stats-4 {
        grid-template-columns: 1fr 1fr;
    }
    .dm-grid-2 {
        grid-template-columns: 1fr;
    }
    .dm-card {
        padding: 16px !important;
    }
    .dm-mentor-card,
    .dm-banco-card,
    .dm-custom-sim-card {
        padding: 0 !important;
    }
}

/* -- Mentor AI ----------------------------------- */
@keyframes mentorPulsate {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.35); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(30, 58, 95, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 58, 95, 0); }
}

.dm-pulsate-mentor {
    animation: mentorPulsate 2s infinite;
    transition: transform 0.2s ease;
}

.dm-pulsate-mentor:hover {
    transform: scale(1.1) !important;
    animation-play-state: paused;
}

/* -- Modal slide-up animation -- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* -- Mentor Chat Styles ----------------------- */
.dm-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.dm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dm-chat-bubble-mentor {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 0px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 90%;
    align-self: flex-start;
}

.dm-chat-bubble-user {
    background: var(--accent-primary);
    color: white;
    border-radius: 0px;
    padding: 10px 16px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 75%;
    align-self: flex-end;
}

.dm-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}

.dm-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: 0px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.dm-chat-input:focus {
    border-color: var(--accent-primary);
}

.dm-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 0px;
    border: none;
    background: var(--accent-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.dm-chat-send-btn:hover {
    background: #0F172A;
}

@keyframes dm-bounce {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   DUOLINGO-STYLE STREAK WIDGET (3D ANIMATED SVG FLAME)
   ═══════════════════════════════════════════════ */
.dm-streak-card {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.35), rgba(255, 237, 213, 0.25), #FFFFFF);
    border: 1px solid rgba(249, 115, 22, 0.22) !important;
    box-shadow: 0 10px 28px -10px rgba(234, 88, 12, 0.12);
}

.dm-streak-card:hover {
    border-color: rgba(249, 115, 22, 0.42) !important;
    box-shadow: 0 14px 34px -8px rgba(234, 88, 12, 0.18) !important;
}

/* 3D Sculpted Flame Container */
.dm-flame-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFF7ED 0%, #FFEDD5 55%, #FED7AA 100%);
    border-radius: 0px;
    border: 1.5px solid rgba(249, 115, 22, 0.32);
    box-shadow:
        0 8px 20px -4px rgba(234, 88, 12, 0.28),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.9);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.dm-flame-emoji {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dm-flame-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.45));
}

.dm-flame-layer-outer,
.dm-flame-layer-mid,
.dm-flame-layer-core {
    transform-origin: 24px 42px;
}

/* Independent Multi-Layer Flame Animations */
@keyframes dmFlameOuterDance {
    0%, 100% { transform: scale(1, 1) rotate(-2deg); }
    25% { transform: scale(1.05, 1.08) rotate(3deg); }
    50% { transform: scale(0.97, 1.03) rotate(-3deg); }
    75% { transform: scale(1.06, 1.11) rotate(2.5deg); }
}

@keyframes dmFlameMidDance {
    0%, 100% { transform: scale(1, 1) rotate(2deg); }
    33% { transform: scale(1.06, 1.1) rotate(-3.5deg); }
    66% { transform: scale(0.95, 1.04) rotate(3deg); }
}

@keyframes dmFlameCorePulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.12, 1.16); opacity: 1; }
}

@keyframes dmSparkRise1 {
    0% { transform: translate(0, 8px) scale(0.4); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translate(-5px, -11px) scale(1.1); opacity: 0; }
}

@keyframes dmSparkRise2 {
    0% { transform: translate(0, 10px) scale(0.4); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(5px, -10px) scale(1); opacity: 0; }
}

@keyframes dmSparkRise3 {
    0% { transform: translate(0, 9px) scale(0.3); opacity: 0; }
    30% { opacity: 0.95; }
    100% { transform: translate(1px, -12px) scale(1.15); opacity: 0; }
}

@keyframes wrapGlowPulse {
    0%, 100% {
        box-shadow: 0 6px 18px -4px rgba(249, 115, 22, 0.32), inset 0 1.5px 2px rgba(255, 255, 255, 0.9);
        border-color: rgba(249, 115, 22, 0.35);
    }
    50% {
        box-shadow: 0 10px 26px -2px rgba(249, 115, 22, 0.58), 0 0 0 4px rgba(251, 146, 60, 0.12), inset 0 1.5px 2px rgba(255, 255, 255, 1);
        border-color: rgba(249, 115, 22, 0.65);
    }
}

/* Active Streak State */
.dm-streak-card.active .dm-flame-layer-outer {
    animation: dmFlameOuterDance 1.8s infinite ease-in-out;
}
.dm-streak-card.active .dm-flame-layer-mid {
    animation: dmFlameMidDance 1.4s infinite ease-in-out;
}
.dm-streak-card.active .dm-flame-layer-core {
    animation: dmFlameCorePulse 1.1s infinite ease-in-out;
}
.dm-streak-card.active .dm-flame-spark.s1 {
    animation: dmSparkRise1 1.9s infinite ease-out;
}
.dm-streak-card.active .dm-flame-spark.s2 {
    animation: dmSparkRise2 2.2s infinite ease-out 0.6s;
}
.dm-streak-card.active .dm-flame-spark.s3 {
    animation: dmSparkRise3 1.7s infinite ease-out 1.1s;
}

.dm-streak-card.active .dm-flame-wrap {
    animation: wrapGlowPulse 2.4s infinite ease-in-out;
}

/* Inactive Streak state (dormant ember waiting to ignite) */
.dm-streak-card.inactive .dm-flame-emoji {
    filter: saturate(0.35) opacity(0.68);
}
.dm-streak-card.inactive .dm-flame-layer-outer {
    animation: dmFlameOuterDance 3.6s infinite ease-in-out;
}
.dm-streak-card.inactive .dm-flame-spark {
    opacity: 0;
    animation: none;
}

.dm-streak-card.inactive .dm-flame-wrap {
    background: linear-gradient(145deg, #F5F5F4, #E7E5E4);
    border: 1px solid var(--border-light);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Message Box Styles */
.dm-streak-message {
    transition: all 0.3s ease;
}

.dm-streak-message.active {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #065F46;
    border: 1px solid rgba(5, 150, 105, 0.24);
    box-shadow: 0 2px 8px -2px rgba(5, 150, 105, 0.1);
}

.dm-streak-message.warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    color: #92400E;
    border: 1px solid rgba(217, 119, 6, 0.25);
    animation: pulseWarning 2.5s infinite ease-in-out;
}

@keyframes pulseWarning {
    0%, 100% { border-color: rgba(217, 119, 6, 0.2); box-shadow: none; }
    50% { border-color: rgba(217, 119, 6, 0.5); box-shadow: 0 0 12px rgba(217, 119, 6, 0.12); }
}

/* Weekly calendar days */
.dm-weekly-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.dm-weekly-day-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
}

.dm-weekly-day-indicator {
    width: 30px;
    height: 30px;
    border-radius: 0px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px dashed var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Day states (3D Sculpted Flame Orbs) */
.dm-weekly-day.practiced .dm-weekly-day-indicator {
    background: linear-gradient(145deg, #FFAB00 0%, #FF6D00 55%, #E65100 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: white;
    box-shadow:
        0 4px 10px -2px rgba(230, 81, 0, 0.45),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.55);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dm-weekly-day.practiced .dm-weekly-day-name {
    color: #EA580C;
    font-weight: 800;
}

.dm-weekly-day.today .dm-weekly-day-indicator {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}

.dm-weekly-day.today.practiced .dm-weekly-day-indicator {
    border: 2px solid var(--accent-primary);
    box-shadow:
        0 4px 12px rgba(230, 81, 0, 0.4),
        0 0 0 3px rgba(30, 58, 95, 0.22),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
}

.dm-weekly-day.today.practiced .dm-mini-flame-svg {
    animation: dmFlameCorePulse 1.3s infinite ease-in-out;
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Motivational Streak Welcome Modal */
.dm-welcome-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.55);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    animation: welcomeFadeIn 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-welcome-modal-content {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(28, 25, 23, 0.18);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 440px;
    border-radius: 0px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
    padding: 32px 28px;
    text-align: center;
    transform: translateY(30px) scale(0.92);
    opacity: 0;
    animation: welcomeSlideUp 0.5s 0.1s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes welcomeFadeIn {
    to { opacity: 1; }
}

@keyframes welcomeSlideUp {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.dm-welcome-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(255, 111, 0, 0.08));
    border: 1.5px solid rgba(251, 146, 60, 0.25);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.15);
}

.dm-welcome-icon-wrap.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(185, 28, 28, 0.06));
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.dm-welcome-icon-wrap.active-streak {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(255, 111, 0, 0.15));
    border-color: rgba(251, 146, 60, 0.45);
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.3);
}

.dm-welcome-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0F172A, #1E3A5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dm-welcome-title.active-streak {
    background: linear-gradient(135deg, #ea580c, #b45309);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dm-welcome-title.danger {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dm-welcome-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.dm-welcome-desc strong {
    color: var(--text-primary);
}

.dm-welcome-btn {
    background: linear-gradient(135deg, #0F172A, var(--accent-primary));
    color: white;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 32px;
    border: 1px solid #0F172A;
    border-radius: 0px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.dm-welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.40);
}

.dm-welcome-btn:active {
    transform: translateY(1px);
}

/* ═══════════════════════════════════════════════
   PSYCHOLOGICAL UX — SUBLIMINAL MESSAGE SYSTEM
   ═══════════════════════════════════════════════ */

/* Gentle organic background floating animation */
@keyframes float-gentle {
    0% { transform: translate(0, 0) rotate(-5deg); }
    25% { transform: translate(30px, -15px) rotate(0deg); }
    50% { transform: translate(0, -35px) rotate(5deg); }
    75% { transform: translate(-30px, -15px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(-5deg); }
}

/* Fast subliminal peak flash every 5 seconds */
@keyframes flash-subliminal {
    0%, 96% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    98% {
        opacity: 0.035;
        transform: translate(-50%, -50%) scale(1.03);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.subliminal-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    z-index: 0; /* Above body background but behind all content cards (z-index 1+) */
    pointer-events: none;
    overflow: hidden;
    user-select: none;
}

.sub-word {
    position: absolute;
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 4.5rem); /* Visible desktop size */
    text-transform: uppercase;
    color: #a8a29e; /* Warm stone-gray 400 — soft enough to blend with beige background */
    opacity: 0.025;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
    will-change: transform, opacity;
    letter-spacing: 2px;
    animation: float-gentle 25s infinite ease-in-out;
}

.sub-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display), sans-serif;
    font-weight: 900;
    font-size: 5vw;
    color: #a8a29e;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    animation: flash-subliminal 5s infinite;
}

/* Responsive Scaling for Mobile viewports (< 768px) */
@media (max-width: 767px) {
    .sub-word {
        font-size: clamp(1.2rem, 4vw, 2.2rem) !important; /* Scale down cleanly to prevent phone overlap bugs */
        letter-spacing: 1px;
        animation-duration: 35s; /* Slower movement on smaller screens to keep it highly stealthy */
    }
    .sub-flash {
        font-size: 7vw;
    }
}

/* ═══════════════════════════════════════════════
   CELEBRATION MODALS (Rank Climb & Mode Unlock)
   ═══════════════════════════════════════════════ */

.dm-celebration-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
}

.dm-celebration-backdrop.dm-cel-visible {
    opacity: 1;
}

.dm-celebration-backdrop.dm-cel-closing {
    opacity: 0;
}

.dm-celebration-card {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(28, 25, 23, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    max-width: 480px;
    border-radius: 0px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 32px 28px 26px;
    text-align: center;
    overflow: hidden;
    transform: translateY(30px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.dm-celebration-backdrop.dm-cel-visible .dm-celebration-card {
    transform: translateY(0) scale(1);
}

.dm-celebration-backdrop.dm-cel-closing .dm-celebration-card {
    transform: translateY(20px) scale(0.92);
    opacity: 0;
}

/* Close Button */
.dm-cel-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-muted, #6B7280);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.dm-cel-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary, #111827);
    transform: scale(1.1);
}

/* Superior Pill */
.dm-cel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dm-pill-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.dm-pill-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.dm-pill-red {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(185, 28, 28, 0.08));
    color: #B91C1C;
    border: 1px solid rgba(220, 38, 38, 0.35);
}

/* SVG Vector Area */
.dm-cel-svg-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 155px;
    margin: 4px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-cel-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* SVG Keyframe Animations */
.dm-pulse-ring {
    transform-origin: center;
    animation: celRingPulse 2.4s infinite ease-out;
}
.dm-ring-2 {
    animation-delay: 0.8s;
}

@keyframes celRingPulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.18); opacity: 0.2; }
    100% { transform: scale(1.35); opacity: 0; }
}

.dm-ascent-path {
    animation: celPathFlow 2.5s infinite linear;
}

@keyframes celPathFlow {
    from { stroke-dashoffset: 36; }
    to { stroke-dashoffset: 0; }
}

.dm-sparkle-1 { animation: celSparkle 1.8s infinite ease-in-out; }
.dm-sparkle-2 { animation: celSparkle 2.2s 0.4s infinite ease-in-out; }
.dm-sparkle-3 { animation: celSparkle 1.6s 0.8s infinite ease-in-out; }

@keyframes celSparkle {
    0%, 100% { transform: scale(0.6); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 1; }
}

.dm-arrow-badge {
    animation: celArrowFloat 2s infinite ease-in-out;
}

@keyframes celArrowFloat {
    0%, 100% { transform: translate(160px, 95px); }
    50% { transform: translate(160px, 89px); }
}

.dm-node-new {
    animation: celNodePop 2.5s infinite ease-in-out;
}

@keyframes celNodePop {
    0%, 100% { transform: translate(230px, 80px) scale(1); }
    50% { transform: translate(230px, 80px) scale(1.06); }
}

.dm-lock-shackle {
    transform-origin: 142px 66px;
    animation: celLockSwing 2.8s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celLockSwing {
    0%, 20% { transform: translateY(0) rotate(0deg); }
    40%, 80% { transform: translateY(-10px) rotate(-28deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.dm-shield-core {
    animation: celShieldShine 2.5s infinite ease-in-out;
}

@keyframes celShieldShine {
    0%, 100% { transform: translate(160px, 95px) scale(1); }
    50% { transform: translate(160px, 95px) scale(1.05); }
}

.dm-rotating-rays {
    animation: celRotateRays 24s infinite linear;
    transform-origin: 160px 90px;
}

@keyframes celRotateRays {
    from { transform: translate(160px, 90px) rotate(0deg); }
    to { transform: translate(160px, 90px) rotate(360deg); }
}

/* Text Content */
.dm-cel-title {
    font-family: var(--font-display, inherit);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.3;
}

.dm-cel-subtitle {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.55;
    margin: 0 0 18px;
    padding: 0 10px;
}

.dm-cel-subtitle strong {
    color: #0F172A;
    font-weight: 700;
}

/* Stat Box for Rank Climb */
.dm-cel-stat-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(30, 58, 95, 0.06);
    border: 1px dashed rgba(30, 58, 95, 0.25);
    border-radius: 0px;
    padding: 10px 16px;
    margin: 0 auto 20px;
    max-width: 320px;
}

.dm-cel-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dm-cel-stat-lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #6B7280;
    text-transform: uppercase;
}

.dm-cel-stat-val {
    font-size: 20px;
    font-weight: 900;
}

.dm-color-gold {
    color: #D97706;
}

.dm-color-green {
    color: #059669;
}

.dm-cel-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, 0.08);
}

/* Unlocked Mode Badge */
.dm-cel-unlocked-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 0px;
    padding: 10px 16px;
    margin: 0 auto 20px;
    max-width: 340px;
    text-align: left;
}

.dm-cel-unlocked-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dm-cel-unlocked-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #92400E;
    margin: 0;
}

.dm-cel-unlocked-status {
    font-size: 11px;
    color: #6B7280;
    margin: 2px 0 0;
}

/* Action Buttons */
.dm-cel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-cel-primary-btn {
    background: linear-gradient(135deg, #0F172A, var(--accent-primary, #1E3A5F));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 24px;
    border: 1px solid #0F172A;
    border-radius: 0px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.dm-cel-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.40);
}

.dm-cel-primary-btn:active {
    transform: translateY(1px);
}

.dm-cel-secondary-btn {
    background: transparent;
    color: #6B7280;
    font-weight: 600;
    font-size: 12.5px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.dm-cel-secondary-btn:hover {
    color: #1F2937;
}

/* ───────────────────────────────────────────────────────────────────
   DEV / TEST FLOATING WIDGET (Para probar sin hacer simulacros)
   ─────────────────────────────────────────────────────────────────── */
.dm-cel-dev-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
}

.dm-cel-dev-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1E1B4B, #312E81);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-cel-dev-pill-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #312E81, #4338CA);
}

.dm-cel-dev-pill-icon {
    font-size: 16px;
}

.dm-cel-dev-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 270px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    padding: 10px;
    transform-origin: bottom right;
    animation: celMenuPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celMenuPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dm-cel-dev-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 12px;
    color: #1E1B4B;
}

.dm-cel-dev-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s;
    margin-top: 4px;
}

.dm-cel-dev-item:hover {
    background: rgba(124, 92, 252, 0.08);
}

.dm-cel-dev-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.dm-cel-dev-title {
    font-size: 12px;
    font-weight: 700;
    color: #1F2937;
}

.dm-cel-dev-sub {
    font-size: 10px;
    color: #6B7280;
}

.dm-cel-dev-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 6px 0;
}

/* ═══════════════════════════════════════════════
   5-DIAMONDS & ÉLITE SUPREME CELEBRATIONS
   ═══════════════════════════════════════════════ */

.dm-pill-cyan {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(2, 132, 199, 0.08));
    color: #0369A1;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.dm-cel-elite-wrapper {
    height: 180px;
}

.dm-cel-diamonds-wrapper {
    height: 180px;
}

/* Crown Float */
.dm-crown-float {
    animation: crownFloatAnim 2.8s infinite ease-in-out;
}

@keyframes crownFloatAnim {
    0%, 100% { transform: translate(160px, 48px) rotate(0deg); }
    50% { transform: translate(160px, 42px) rotate(1deg); }
}

/* Master Diamond 3D Shimmer */
.dm-master-diamond {
    animation: masterDiamondPulse 3.2s infinite ease-in-out;
}

@keyframes masterDiamondPulse {
    0%, 100% { transform: translate(160px, 105px) scale(1); filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4)); }
    50% { transform: translate(160px, 103px) scale(1.05); filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.7)); }
}

.dm-diamond-shimmer {
    animation: diamondShimmerSweep 2.2s infinite ease-in-out;
}

@keyframes diamondShimmerSweep {
    0%, 10% { opacity: 0; stroke-dashoffset: 40; }
    50% { opacity: 0.9; }
    90%, 100% { opacity: 0; stroke-dashoffset: -40; }
}

/* 5 Gems Arc Pulsing */
.dm-gem-pulse {
    animation: gemPulseAnim 2s infinite ease-in-out;
}

.dm-gem-center {
    animation: gemCenterAnim 1.6s infinite ease-in-out;
}

@keyframes gemPulseAnim {
    0%, 100% { transform-origin: center; filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5)); }
    50% { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.9)); }
}

@keyframes gemCenterAnim {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)); }
    50% { filter: drop-shadow(0 0 18px rgba(245, 158, 11, 1)); }
}

/* Certificate Card inside Modal */
.dm-cel-certificate-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.04), rgba(234, 179, 8, 0.08));
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    border-radius: 18px;
    padding: 12px 18px;
    margin: 0 auto 20px;
    max-width: 360px;
}

.dm-cel-cert-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.dm-cel-cert-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #854D0E;
    margin: 0 0 2px 0;
}

.dm-cel-cert-sub {
    font-size: 11px;
    color: #52525B;
    margin: 0;
    line-height: 1.4;
}

/* Highlighted Dev Menu Item */
.dm-cel-item-highlight {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(234, 179, 8, 0.12)) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.dm-cel-item-highlight:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(234, 179, 8, 0.22)) !important;
}

/* Pulsing highlight for the certificate banner when unlocked */
.dm-cert-glow-pulse {
    animation: certBannerPulse 2.5s infinite alternate ease-in-out;
}

@keyframes certBannerPulse {
    0% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 0 rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 25px rgba(234, 179, 8, 0.6); }
}

/* ───────────────────────────────────────────────────────────────────
   OFFICIAL CERTIFICATE ISSUANCE & VERIFICATION MODAL
   ─────────────────────────────────────────────────────────────────── */
.dm-cert-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(7, 10, 19, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 20px !important;
    animation: dmCertFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

@keyframes dmCertFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dm-cert-modal-card {
    position: relative !important;
    width: 100% !important;
    max-width: 490px !important;
    background: #0F172A !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    border-radius: 28px !important;
    padding: 34px 30px 26px !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    text-align: left !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    animation: dmCertCardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes dmCertCardPop {
    from { transform: translateY(30px) scale(0.94); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.dm-cert-shimmer-top {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #D97706, #FDE68A, #D97706) !important;
}

.dm-cert-modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: none !important;
    color: #94A3B8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.dm-cert-modal-close:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    transform: scale(1.1) !important;
}

.dm-cert-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.dm-cert-icon-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.08)) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    font-size: 28px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.dm-cert-pill-badge {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    background: rgba(245, 158, 11, 0.12) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    margin-bottom: 8px !important;
}

.dm-cert-title {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.02em !important;
}

.dm-cert-sub {
    font-size: 12px !important;
    color: #94A3B8 !important;
    margin: 0 auto !important;
    line-height: 1.5 !important;
    max-width: 380px !important;
}

.dm-cert-alert-box {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 13px 15px !important;
    border-radius: 16px !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    margin-bottom: 20px !important;
}

.dm-cert-alert-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.dm-cert-alert-content {
    font-size: 12px !important;
    color: #FDE68A !important;
    line-height: 1.45 !important;
}

.dm-cert-alert-content strong {
    color: #F59E0B !important;
    display: block !important;
    margin-bottom: 2px !important;
    font-weight: 800 !important;
}

.dm-cert-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.dm-cert-form-group {
    display: flex !important;
    flex-direction: column !important;
}

.dm-cert-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #CBD5E1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
}

.dm-cert-label-hint {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    text-transform: none !important;
}

.dm-cert-input, .dm-cert-select {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    border-radius: 13px !important;
    padding: 12px 14px !important;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.dm-cert-input:focus, .dm-cert-select:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

.dm-cert-input-highlight {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

.dm-cert-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.dm-cert-error {
    display: none;
    font-size: 12px !important;
    color: #F87171 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.dm-cert-error.active {
    display: block !important;
}

.dm-cert-submit-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    border: none !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.dm-cert-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.48) !important;
}

.dm-cert-submit-btn:active {
    transform: translateY(0) !important;
}

.dm-cert-cancel-btn {
    width: 100% !important;
    padding: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #64748B !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
}

.dm-cert-cancel-btn:hover {
    color: #CBD5E1 !important;
}

/* Existing cert summary card */
.dm-cert-summary-box {
    margin: 18px 0 !important;
    padding: 16px !important;
    border-radius: 16px !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    font-size: 12px !important;
}

.dm-cert-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.dm-cert-summary-lbl {
    color: #94A3B8 !important;
}

.dm-cert-summary-val {
    font-weight: 700 !important;
    color: #FFFFFF !important;
}

.dm-cert-summary-val-gold {
    font-family: monospace !important;
    font-weight: 800 !important;
    color: #FBBF24 !important;
}

.dm-cert-sec-action-btn {
    width: 100% !important;
    padding: 10px !important;
    border-radius: 12px !important;
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #E2E8F0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.dm-cert-sec-action-btn:hover {
    background: #334155 !important;
    color: #FFFFFF !important;
}
