:root {
    /* main colors */
    --wf-orange: orange;
    --wf-orange-col: orange;
    --wf-white: #fffbf7;
    --wf-black: #1a1a1a;
    --wf-dark-text: #333;
    --wf-muted: #6b7280;
    --wf-light-gray: #9ca3af;
    
    --wf-orange-pale: rgba(255, 255, 255, 0.18);
    --wf-orange-pale-2: rgba(255, 255, 255, 0.08);
    --wf-orange-soft: rgba(255, 172, 37, 0.5);
    --wf-header-bg: rgba(0, 0, 0, 0.06);
    --wf-overlay-dark: rgba(0, 0, 0, 0.5);
    --wf-border-black: rgba(0,0,0,0.12);
    
    --wf-danger: #ff5e3a;
    --wf-red-btn: rgb(255, 0, 0, 0.2);
    --wf-red-btn-hover: rgb(255, 0, 0, 0.5);
    --wf-green-btn: rgba(13, 255, 0, 0.2);
    --wf-green-btn-hover: rgba(13, 255, 0, 0.5);
    
    --wf-card-bg: #fffbf7;
    --wf-shadow-main: 0 8px 32px rgba(0, 0, 0, 0.2);
    --wf-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.12);
    --wf-premium-grad: linear-gradient(135deg, #c084fc, #db2777, #f59e0b, #ec4899);
    --wf-premium-btn: linear-gradient(135deg, #c084fc, #db2777);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: open 0.5s;

    transition: background-color 0.3s ease-in-out, 
    color 0.3s ease-in-out, 
    border 0.3s ease-in-out, 
    filter 0.3s ease-in-out,
    text-shadow 0.3s ease-in-out;
}

@keyframes open {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes close {
    0% {
        display: block;
    }
    100% {
        display: none;
    }
}

body {
    font-family: "Archivo Black", sans-serif;
    background: var(--wf-orange);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--wf-black);
}

.trainer-page {
    min-height: 100vh;
    position: relative;
    background: var(--wf-orange);
}

.trainer-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--wf-orange), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.trainer-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Header */
.trainer-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--wf-orange-pale);
    background: var(--wf-header-bg);
}

.trainer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s;
}
.trainer-brand:hover { opacity: 0.95; transform: scale(1.02); }

.trainer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.trainer-logo {
    font-size: 1.25rem;
    color: var(--wf-white);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-family: "Archivo Black", sans-serif;
}

#premiumTitle {
    font-family: "Archivo Black", sans-serif;
}

.trainer-stats { display: flex; gap: 0.5rem; }

.stat-badge {
    padding: 0.35rem 0.75rem;
    background: var(--wf-orange-pale);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--wf-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.trainer-main {
    position: relative;
    z-index: 5;
    padding: 1.5rem 1rem 3rem;
    max-width: 400px;
    margin: 0 auto;
}

.cards-zone { margin-bottom: 2rem; display: block;}

.cards-hint {
    text-align: center;
    color: var(--wf-white);
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* Stack */
.cards-stack {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    width: 100%;
    max-width: 320px;
    height: 260px;
    border-radius: 16px;
    box-shadow: var(--wf-shadow-main);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: grab;
    user-select: none;
}

.cards-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card:active { cursor: grabbing; }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--wf-card-bg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.card-front .card-corner-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.22;
    pointer-events: none;
}

.card-inner.card-flipped { transform: rotateY(180deg); }

.card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: inherit;
    backface-visibility: hidden;
}

.card-front {
    background: var(--wf-card-bg);
}
.card-back {
    background: var(--wf-card-bg);
    border: 2px solid var(--wf-orange);
    transform: rotateY(180deg);
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wf-orange);
    margin-bottom: 0.4rem;
}

.card-word {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wf-black);
    text-align: center;
    line-height: 1.25;
}

.card-top { z-index: 3; }
.card-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

#btn-dont-know.card-swipe-left {
    animation: swipeLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.card-swipe-left {
    animation: swipeLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.card-swipe-right {
    animation: swipeRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes swipeLeft {
    to {
        transform: translateX(-120%) rotate(-18deg);
        opacity: 0;
    }
}
@keyframes swipeRight {
    to {
        transform: translateX(120%) rotate(18deg);
        opacity: 0;
    }
}

.card-under {
    z-index: 1;
    background: var(--wf-card-bg);
    border-radius: 16px;
    box-shadow: var(--wf-shadow-sm);
}
.card-under-1 { transform: translateY(6px) scale(0.97); opacity: 0.85; }
.card-under-2 { transform: translateY(12px) scale(0.94); opacity: 0.6; }

/* Buttons */
.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-swipe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-swipe:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-swipe:not(:disabled):hover { transform: scale(1.06); }
.btn-swipe:not(:disabled):active { transform: scale(0.98); }

.btn-swipe-no {
    background: var(--wf-orange);
    color: var(--wf-white);
}
.btn-swipe-yes {
    background: var(--wf-orange);
    color: var(--wf-white);
}

.btn-swipe-icon { font-size: 1.4rem; line-height: 1; }

/* Empty / Done states */
.empty-state,
.done-state {
    text-align: center;
    padding: 2rem 1rem;
}

.done-state {
    display: none;
}

.empty-logo-wrap,
.done-logo-wrap {
    margin-bottom: 1rem;
}

.empty-state-logo,
.done-state-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: logo-float 4s ease-in-out infinite;
}

.done-state-logo {
    animation: logo-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes logo-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.empty-title,
.done-title {
    font-size: 1.1rem;
    color: var(--wf-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.empty-desc,
.done-desc {
    font-size: 0.85rem;
    color: var(--wf-white);
    opacity: 0.9;
}

.btn-start-again {
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    background: var(--wf-white);
    color: var(--wf-orange);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-start-again:hover { transform: scale(1.05); }

/* Create zone */
.create-zone {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: var(--wf-orange-pale-2);
    border: 1px dashed var(--wf-orange-pale);
    transition: border-color 0.2s, background 0.2s;
}
.create-zone:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-create-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--wf-white);
    color: var(--wf-orange);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-create-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wf-shadow-sm);
}

.btn-create-icon { font-size: 1.2rem; line-height: 1; }

.create-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--wf-white);
    opacity: 0.85;
}

/* Footer */
.trainer-footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 1.25rem 1rem;
}

.footer-link {
    border: 1px solid white;
    margin-top: 10px;
    border-radius: 20px;
    padding:  5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wf-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}
.footer-link:hover { opacity: 1; transform: translateY(-2px); }

.footer-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
}

/* Modal */
#modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--wf-overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: none;
    transition-duration: 0.5s;
}

#modal-overlay-edit, #modal-overlay-streak {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--wf-overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: none;
    transition-duration: 0.5s;
}

#cards-edit {
    max-height: 600px; 
    min-width: 100%; 
    overflow-y: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

#cards-edit::-webkit-scrollbar {
    display: none;
}


#importFirst {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 8.75rem;
    background: var(--wf-white);
    color: var(--wf-orange);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#importFirst:hover {
    transform: translateY(-2px);
    transform: scale(1.1);
    box-shadow: var(--wf-shadow-sm);
}

.card-edit {
    width: 100%;
    min-height: 40px;
    padding: 10px;
    border-radius: 10px;
    background: var(--wf-orange-soft);
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
}

.btn-delete-card {
    color: red;
    transition-duration: 0.5s;
}

.btn-delete-card:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#buttonLocalAccounts {
    transition-duration: 0.5s;
    transition: transform 0.5s ease;
    transform: scale(1);
}

#buttonLocalAccounts:hover {
    transform: scale(1.2);
    cursor: pointer;
}



.modal {
    width: 100%;
    max-width: 340px;
    background: var(--wf-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--wf-orange-pale);
}

#btn-dont-know {
    background-color: var(--wf-red-btn);
    transition-duration: 0.5s;
}
#btn-dont-know:hover {
    background-color: var(--wf-red-btn-hover);
}

#btn-know {
    background-color: var(--wf-green-btn);
    transition-duration: 0.5s;
}

#btn-know:hover {
    background-color: var(--wf-green-btn-hover);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.modal-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
}

.modal-title {
    font-size: 1.15rem;
    color: var(--wf-orange-col);
    margin: 0;
}

.modal-form { display: flex; flex-direction: column; gap: 0.75rem; }

.modal-label {
    font-size: 0.8rem;
    color: var(--wf-dark-text);
}

.modal-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--wf-border-black);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.modal-input:focus {
    outline: none;
    border-color: var(--wf-orange);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

#change_language {
    display: flex;
    align-items: center;
    transition-duration: 0.2s;
}

#change_language:hover {
    transform: scale(1.1);
    cursor: pointer;
}

#btn-modal-delete-all-edit {
    color: white;
    background: var(--wf-orange);
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition-duration: 0.5s;
}
#btn-modal-delete-all-edit:hover {
    color: red;
    transform: scale(0.9);
}

#links {
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 10px;
    filter: drop-shadow(0 5px 2px rgba(0, 0, 0, 0.3));
}

#links div {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#links div:hover {
    gap: 25px;
    transform: translateY(-10px) scale(1.2);
    cursor: pointer;
}

#import-export-div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10%;
}

#btn-modal-streak-yay-main {
    transition: 0.3s ease-in-out;
}

#btn-modal-streak-yay-main:hover {
    transform: scale(1.2);
    rotate: 360deg;
}

#switchTheme {
    transition: transform 0.5s ease;
}

#switchTheme:hover {
    transform: scale(1.2);
    transform: rotate(10deg);
    cursor: pointer;
}

#font {
    max-width: 120px;
    transition: transform 0.5s ease;
}

#font:hover {
    transform: scale(1.2);
    transform: rotate(10deg);
    cursor: pointer;
}

#fullscreen-bg {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 100; 
    object-fit: cover;
    mix-blend-mode: screen;
    pointer-events: none;
}

#div-15-sec {
    display: flex;
    flex-direction: row;
    align-items: end;
    transform: scale(1.5);
}

#start-timer {
    padding: 0px 65px;

    transition: ease 0.2s;
}

#start-timer:hover {
    cursor: pointer;
    transform: scale(1.1);
}

video {
    border: 5px solid red !important;
    min-width: 200px;
    min-height: 200px;
}



.btn-modal-cancel,
.btn-modal-save, #btn-modal-streak-yay {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-modal-cancel {
    background: var(--wf-orange-pale-2);
    color: var(--wf-orange-col);
}
.btn-modal-save {
    background: var(--wf-orange);
    color: var(--wf-white);
}
.btn-modal-cancel:hover,
.btn-modal-save:hover { opacity: 0.9; }

/* Hide stack when empty or done */
.cards-zone.deck-empty .cards-stack,
.cards-zone.deck-empty .swipe-actions,
.cards-zone.deck-empty .cards-hint { display: none; }

.cards-zone.deck-done .cards-stack,
.cards-zone.deck-done .swipe-actions,
.cards-zone.deck-done .cards-hint { display: none; }

#GraphWeek:hover {
    cursor: pointer;
}

#modalAccountsContainer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--wf-overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition-duration: 0.5s;  
}
#modalAccountsContainerText {
    font-size: 17.5px;
}

#modalAccountsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px
}

#modalAccountsContainer {
    position: fixed;
    inset: 0;
    background: var(--wf-overlay-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}

#modalAccountsContainer .modal,
#modalAccountsContainer .premium-modal-light {
    max-height: 90vh;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; 
}

#deletealldata {
    font-size: 20px;
    display: flex;
    height: 50px;
    align-items: center;
    color: white;
    transition: all 0.5s ease;
}

#learned-count {
    color: green;
    opacity: 0.7;
}

#hidelearnedCards {
    transition: 0.2s ease-in-out 0.1s;
}

#hidelearnedCards:hover {
    cursor: pointer;
    transform: scale(1.5);
}

#modalDeleteAllData {
    padding: 1px;
    height: 50px;
    background-color: var(--wf-orange);
    box-shadow: var(--wf-danger);
    transition: all 0.5s ease;
}

#modalDeleteAllData:hover {
    transform: scale(1.1);
    cursor: pointer;
}

#addAccount {
    border: 1px solid var(--wf-danger);
}

#addAccountContainer {
    display: flex;
    width: 100%;
    justify-content: start;
}

.dropdown {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.dropdown-btn {
    background-color: var(--wf-orange);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 700;
}

.dropdown-btn:hover {
    background-color: var(--wf-orange);
}

.dropdown-content {
    display: none; 
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 4px;
}

.dropdown-content1 {
    display: flex; 
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 4px;
    flex-direction: column;
}

#modal-choose-language {
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-overlay-choose-language {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--wf-overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: none;
    transition-duration: 0.5s;
}

.OneProfile {
    text-shadow: white 1px 1px 10px;
    transition: padding 0.5s ease, color 0.5s ease;
}

.containerMenuAccounts {
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: padding 0.5s ease, 0.5s ease;
}

.containerMenuAccounts:hover {
    cursor: pointer;
    padding: 20px;
    transform: scale(1.1);
}

.deleteAccountButton {
    color: red;
    transition: padding 0.5s ease, 0.5s ease;
}

.deleteAccountButton:hover {
    margin: 0px 10px;
    transform: scale(2);
}


.OneProfile:hover {
    color: blue;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content1 a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

#section_but_info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    justify-content: end;
    align-items: end;
    z-index: 45;
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 100px;
    color: white;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

#section_but_info:hover {
    transform: scale(1.0);
    cursor: pointer;
    bottom: 30px;
    border: 1px solid white;
    background: black;
}

.commit-structure {
    gap: 20px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--wf-orange);
}

#last-commit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#logo-wordforge-premium {
    font-size: 25px;
}

.commit {
    color: white;
    text-decoration:none;
}

.commit-date {
    display: flex;
    justify-content: end;
    color: #888;
}

#section_but_info.active {
    transition-duration: 1s;
    background: white;
    transform: scale(2.0);
    top: 50px;
    left: 50px;
}


.dropdown-content a:hover {
    background-color: #f1f1f1;
    background-color: #e0e0e0;
}

.dropdown-content1 a:hover {
    background-color: #f1f1f1;
    background-color: #e0e0e0;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content1.show {
    display: block;
}

#modalAddAccounts {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--wf-overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: none;
    transition-duration: 0.5s;  
}

#continue {
    display: flex;
    width: 400px;
    justify-content: center;
    color: black;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 700;
}

#continueModal {
    display: none;
    padding: 10px 10px;
    background-color: transparent;
}

#modalAddAccounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-content {
    max-height: 300px; 
    overflow-y: auto;    
    scrollbar-width: thin; 
}

.dropdown-content::-webkit-scrollbar {
    width: 8px;           
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #888;     
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;       
}

#buttonLocalAccounts {
    transition-duration: 0.5s;
}

#buttonLocalAccounts.clicked {
    transform: rotate(90deg);
}

.premium-modal-light {
    background: var(--wf-card-bg);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.premium-title {
    text-align: center;
}

.premium-title-main {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--wf-premium-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-subtitle {
    font-size: 12px;
    color: var(--wf-muted);
    margin-top: 4px;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--wf-danger);
}

.premium-feature-icon {
    font-size: 18px;
}

.premium-pricing {
    text-align: center;
    margin: 8px 0 12px;
}

.premium-price {
    font-size: 28px;
    font-weight: 700;
}

.premium-price-dollar {
    font-size: 16px;
}

.premium-price-period {
    font-size: 14px;
    font-weight: 400;
}

.premium-save {
    font-size: 12px;
    color: var(--wf-muted);
}

.premium-btn-light {
    background: var(--wf-premium-btn);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
    text-align: center;
}

.premium-btn-light:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(192, 132, 252, 0.3);
}

.premium-footer {
    text-align: center;
    font-size: 10px;
    color: var(--wf-light-gray);
    margin-top: 12px;
}

#TranslateAI {
    background: var(--wf-orange-col);
    color: var(--wf-card-bg);
    padding: 1px 4px;
    border-radius: 5px;

    transition: ease 0.2s all;
}

#TranslateAI:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#coin {
    position: fixed;
    bottom: 70%;
    right: 50%;
    z-index: 999999;
    opacity: 0;
    display: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes coinShow {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75%{
        opacity: 1;
        padding: 0px;
    }
    100% {
        opacity: 0;
        padding: 100px;
    }
}

#trainer-page {
    position: relative;
    z-index: 1;
}

.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: black;
    opacity: .3;
    border-radius: 50%;
    animation: float 10s linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh);
    }

    to {
        transform: translateY(-100px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .trainer-main { padding: 1rem 0.75rem 2rem; }
    .cards-stack { height: 280px; }
    .card { height: 240px; max-width: 280px; }
    .card-word { font-size: 1.5rem; }
    .swipe-actions { gap: 0.75rem; margin-top: 1.25rem; }
    .btn-swipe { padding: 0.6rem 0.85rem; font-size: 0.7rem; }
    .btn-swipe-icon { font-size: 1.25rem; }
    #cards-edit {
        max-height: 200px; 
    }
    #links {gap: 20px}
    #links div {
        padding-top: 10px;
        transform: scale(1.5);
    }
    #buttonLocalAccounts {
        transform: scale(0.8);
    }
    /* #trainer-logo {
        font-size: 10px;
    } */
    #modalAccountsContainer {
        flex-direction: column !important;
    }
}
@media (max-width: 768px) {
    #modalAccountsContainer {
        padding: 40px 16px; 
        justify-content: start !important;
    }

    #block-1,
    #block-2 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .premium-modal-light,
    #modal-account,
    #modalAccountsContainerTextContainer,
    #modalDeleteAllData {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .scroll-div {
        width: 300px; 
        height: 700px; 
        overflow-y: auto; 
        border: 1px solid #ccc;
    }
    #closethemes {
        margin: 0px;
        position: fixed;
        top: 96px;
        right: 20px;
    }
}

#themeMenu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--wf-overlay-dark);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: flex;
    transition-duration: 0.5s;
}

#modalFlex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    max-width: 750px;
    max-height: 800px;
    flex-wrap: wrap
}

.theme {
    min-width: 200px;
    min-height: 200px;
    color: white;
    background: var(--wf-black);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px var(--wf-black) solid;
    box-shadow: 5px 5px 5px black;

    transition: 0.1s ease;
}

#closethemes {
    position: fixed;
    z-index: 200;
    margin-left: 700px;
    margin-top: -75px;
}

.theme:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 5px 5px 15px black;
}

.theme h3 {
    display: flex;
    justify-content: center;
}

.theme p {
    color: linear-gradient(135deg, #c084fc, #db2777, #f59e0b, #ec4899);
}

#Lighttheme {
    background: linear-gradient(145deg, #fffbf7, #ff9100);
    color: #000000;
}

#Darktheme {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    color: #e8e8e8;
}

#Greentheme {
    background: linear-gradient(145deg, #00ff00, #307c30, #7fff7f);
    color: #b0ffb0;
}

#Bluetheme {
    background: linear-gradient(145deg, #0073ff, #77bbff, #0088ff, #080e16);
    color: #b0ccee;
}

#Purpletheme {
    background: linear-gradient(145deg, #6600ff, #c85aff, orange);
    color: #d4c0f0;
}

#Redtheme {
    background: linear-gradient(145deg, #ff0000, #c00000, #8c0000, #7f0000);
    color: #e8b0b0;
}

#Sunsettheme {
    background: linear-gradient(145deg, #ff6b8a, #ff9a56, #a855f7);
    color: #fff5f0;
}

#Oceantheme {
    background: linear-gradient(145deg, #0a1628, #0d4a6b, #38bdf8);
    color: #e0f2fe;
}

#Midnighttheme {
    background: linear-gradient(145deg,  #57432d, #0a0a0a, #3a3a4a);
    color: #e8e0f0;
}

#BlackWhite {
    background: linear-gradient(145deg, #000000, #111111);
    color: #ffffff;
}

.Wf-premium {
    display: flex;
    height: 150px;
    align-items: end;
    justify-content: end; 
}

.Wf-premium p {
    background: linear-gradient(135deg, #c084fc, #db2777, #f59e0b, #ec4899);
    padding: 5px 5px;
    border-radius: 10px;
}