:root {
    --primary: #007AFF;
    --background: #F5F5F7;
    --card: #FFFFFF;
    --text: #1C1C1E;
    --secondary: #8E8E93;
    --border: #E5E5EA;
    --danger: #FF3B30;
    --success: #72D98A;
}


/* =========================
   DARK MODE
========================= */

body.dark {
    --background: #000000;
    --card: #1C1C1E;
    --text: #F5F5F7;
    --secondary: #98989D;
    --border: #38383A;
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    width: 100%;
    min-height: 100%;
}


body {
    width: 100%;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);

    transition:
        background 0.25s ease,
        color 0.25s ease;

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font-family: inherit;
}


button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================
   APP
========================= */

.app {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    padding:
        25px
        18px
        35px;
}


/* =========================
   HEADER
========================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}


.welcome {
    color: var(--secondary);

    font-size: 15px;

    margin-bottom: 5px;
}


.header h1 {
    font-size: 32px;

    letter-spacing: -1px;
}


.header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================
   ICON BUTTON
========================= */

.icon-btn {
    width: 43px;
    height: 43px;

    border: none;
    border-radius: 50%;

    background: var(--card);
    color: var(--text);

    font-size: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);

    transition:
        transform 0.15s ease,
        background 0.25s ease;
}


.icon-btn:active {
    transform: scale(0.88);
}


/* =========================
   PROFILE
========================= */

.profile-btn {
    width: 43px;
    height: 43px;

    border: none;
    border-radius: 50%;

    background: var(--primary);
    color: white;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease;
}


.profile-btn:active {
    transform: scale(0.88);
}


/* =========================
   ADD TASK
========================= */

.add-task {
    display: flex;

    gap: 10px;

    margin-bottom: 14px;
}


#taskInput {
    flex: 1;
    min-width: 0;

    border: none;
    outline: none;

    background: var(--card);
    color: var(--text);

    padding: 16px;

    border-radius: 16px;

    font-size: 15px;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.04);
}


#taskInput::placeholder {
    color: var(--secondary);
}


.add-btn {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border: none;
    border-radius: 16px;

    background: var(--primary);
    color: white;

    font-size: 30px;

    cursor: pointer;

    transition:
        transform 0.15s ease;
}


.add-btn:active {
    transform: scale(0.90);
}


/* =========================
   GROUPS
========================= */

.groups {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding:
        2px
        2px
        8px;

    margin-bottom: 5px;

    scrollbar-width: none;
}


.groups::-webkit-scrollbar {
    display: none;
}


.group-btn {
    flex-shrink: 0;

    border: none;

    border-radius: 12px;

    padding:
        9px
        12px;

    background: var(--card);

    color: var(--secondary);

    font-size: 13px;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.04);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}


.group-btn.active {
    background: var(--primary);

    color: white;
}


.group-btn:active {
    transform: scale(0.94);
}


/* =========================
   TRASH
========================= */

.trash-section {
    display: flex;

    justify-content: flex-end;

    margin-bottom: 10px;
}


.trash-btn {
    border: none;

    background: transparent;

    color: var(--danger);

    font-size: 13px;

    font-weight: 600;

    padding:
        6px
        4px;

    cursor: pointer;

    opacity: 0.9;
}


.trash-btn:active {
    transform: scale(0.95);
}


/* =========================
   TASK LIST
========================= */

#taskList {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    font-size: 14px;

    color: var(--secondary);

    margin:
        18px
        4px
        8px;

    font-weight: 600;
}


/* =========================
   SWIPE CONTAINER
========================= */

.swipe-container {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 18px;
}


/* =========================
   SWIPE BACKGROUND
========================= */

.swipe-background {
    position: absolute;

    inset: 0;

    z-index: 0;

    display: flex;

    align-items: center;

    padding: 0 20px;

    color: white;

    font-size: 14px;

    font-weight: 600;

    pointer-events: none;

    opacity: 0;
}


/* =========================
   SWIPE RIGHT
========================= */

.swipe-complete {
    background: var(--success);

    justify-content: flex-start;
}


/* =========================
   SWIPE LEFT
========================= */

.swipe-delete {
    background: var(--danger);

    justify-content: flex-end;
}


/* =========================
   TASK
========================= */

.task {
    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background: var(--card);

    color: var(--text);

    border-radius: 18px;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.04);

    transform:
        translate3d(0,0,0);

    touch-action: pan-y;

    user-select: none;

    will-change: transform;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        border 0.2s ease;
}


.task.completed {
    opacity: 0.70;

    background: var(--success);

    color: #1C1C1E;
}


/* =========================
   IMPORTANT TASK
========================= */

.task.important-task {
    border:
        1.5px solid
        rgba(255, 214, 10, 0.55);
}


/* =========================
   TASK CONTENT
========================= */

.task-content {
    flex: 1;

    min-width: 0;
}


.task-content p {
    font-size: 16px;

    font-weight: 500;

    word-break: break-word;

    line-height: 1.4;
}


.task-content span {
    display: block;

    color: var(--secondary);

    font-size: 12px;

    margin-top: 4px;
}


.task.completed .task-content p {
    text-decoration: line-through;

    color: var(--secondary);
}


/* =========================
   IMPORTANT STAR
========================= */

.important-star {
    display: inline-block;

    margin-left: 5px;

    font-size: 13px;

    vertical-align: middle;
}


/* =========================
   CHECK
========================= */

.check {
    width: 26px;
    height: 26px;

    flex-shrink: 0;

    border-radius: 50%;

    border:
        2px solid
        var(--primary);

    background: transparent;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.check:active {
    transform: scale(0.88);
}


.task.completed .check {
    background: var(--primary);
}


/* =========================
   ACTION BUTTONS
========================= */

.actions {
    display: flex;

    align-items: center;

    gap: 2px;

    flex-shrink: 0;
}


.actions button {
    width: 34px;
    height: 34px;

    border: none;

    border-radius: 10px;

    background: transparent;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;
}


.actions button:active {
    background:
        rgba(128,128,128,0.15);
}


/* =========================
   IMPORTANT BUTTON
========================= */

.important-btn {
    color: #FFD60A;

    font-size: 17px;

    opacity: 0.35;

    transition:
        opacity 0.2s ease,
        transform 0.15s ease;
}


.important-btn.active {
    opacity: 1;
}


.important-btn:active {
    transform: scale(0.88);
}


/* =========================
   EDIT
========================= */

.edit {
    color: var(--primary);
}


/* =========================
   DELETE
========================= */

.delete {
    color: var(--danger);
}


/* =========================
   TRASH ACTIONS
========================= */

.restore {
    color: var(--primary);
}


.permanent-delete {
    color: var(--danger);
}


.trash-actions {
    display: flex;

    align-items: center;

    gap: 4px;
}


/* =========================
   EMPTY TRASH
========================= */

.empty-trash {
    width: 100%;

    border: none;

    border-radius: 14px;

    background: var(--danger);

    color: white;

    padding: 13px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    margin-top: 8px;
}


.empty-trash:active {
    transform: scale(0.98);
}


/* =========================
   SVG
========================= */

.actions svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================
   EMPTY STATE
========================= */

.empty-state {
    text-align: center;

    color: var(--secondary);

    padding:
        55px
        20px;
}


.empty-icon {
    width: 60px;
    height: 60px;

    margin:
        auto
        auto
        15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: white;

    border-radius: 50%;

    font-size: 25px;
}


.empty-state h2 {
    color: var(--text);

    margin-bottom: 5px;
}


.empty-state p {
    font-size: 14px;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    color: var(--secondary);

    font-size: 13px;

    margin-top: 25px;
}


.copyright {
    display: block;
    font-weight: bold;

    margin-top: 7px;

    font-size: 14px;

    opacity: 0.65;
    background: linear-gradient(90deg, #007AFF, #8B5CF6);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 200% auto;
animation: creditGradient 2.0s ease-in-out infinite alternate;
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.45);

    display: flex;

    align-items: flex-end;

    justify-content: center;

    padding: 15px;

    z-index: 100;
}


.hidden {
    display: none !important;
}


/* =========================
   MODAL BOX
========================= */

.modal-box {
    width: 100%;

    max-width: 500px;

    background: var(--card);

    color: var(--text);

    border-radius:
        26px
        26px
        18px
        18px;

    padding: 25px;

    position: relative;

    box-shadow:
        0 -5px 30px rgba(0,0,0,0.15);
}


.close {
    position: absolute;

    right: 18px;
    top: 12px;

    width: 35px;
    height: 35px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: var(--secondary);

    font-size: 28px;

    cursor: pointer;
}


.modal-box h2 {
    margin-bottom: 22px;
}


.modal-box label {
    display: block;

    color: var(--secondary);

    font-size: 13px;

    margin-bottom: 7px;
}


#nameInput {
    width: 100%;

    padding: 14px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    outline: none;

    background: var(--background);

    color: var(--text);

    font-size: 15px;

    margin-bottom: 25px;
}


.modal-box h3 {
    font-size: 15px;

    margin-bottom: 13px;
}


/* =========================
   COLORS
========================= */

.colors {
    display: flex;

    gap: 12px;

    margin-bottom: 25px;

    flex-wrap: wrap;
}


.color {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    border:
        3px solid
        var(--card);

    cursor: pointer;
}


.color.selected {
    outline:
        2px solid
        var(--text);

    outline-offset: 2px;
}


/* =========================
   SAVE
========================= */

.save {
    width: 100%;

    border: none;

    background: var(--primary);

    color: white;

    padding: 14px;

    border-radius: 14px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}


.save:active {
    transform: scale(0.98);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 480px) {

    .app {
        padding:
            20px
            14px
            30px;
    }


    .header h1 {
        font-size: 28px;
    }


    .header {
        margin-bottom: 20px;
    }


    .icon-btn,
    .profile-btn {
        width: 40px;
        height: 40px;
    }


    .task {
        padding:
            14px
            12px;
    }


    .task-content p {
        font-size: 15px;
    }


    .actions button {
        width: 32px;
        height: 32px;
    }


    .swipe-background {
        padding:
            0 16px;
    }

}


@media (min-width: 700px) {

    .app {
        padding-top: 50px;
    }

}


/* PWA / Mobile App Fix */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
}

* {
    box-sizing: border-box;
}

/* Prevent iPhone zoom when typing */
input,
textarea,
select,
button {
    font-size: 16px;
}

/* Prevent text selection / long-press zoom */
button,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}
/* =========================
   APP DRAWER
========================= */

.menu-btn {
    width: 43px;
    height: 43px;

    border: none;
    border-radius: 50%;

    background: var(--card);
    color: var(--text);

    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);

    transition:
        transform 0.15s ease,
        background 0.25s ease;
}

.menu-btn:active {
    transform: scale(0.88);
}


/* OVERLAY */

.drawer-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.42);

    opacity: 0;
    visibility: hidden;

    z-index: 998;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* DRAWER */

.app-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: min(320px, 86vw);
    height: 100vh;

    background: var(--card);
    color: var(--text);

    z-index: 999;

    transform: translateX(100%);

    display: flex;
    flex-direction: column;

    box-shadow:
        -8px 0 30px rgba(0,0,0,0.12);

    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}


.app-drawer.open {
    transform: translateX(0);
}


/* DRAWER HEADER */

.drawer-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        28px
        22px
        20px;

    border-bottom:
        1px solid
        var(--border);
}


.drawer-small {
    color: var(--secondary);

    font-size: 13px;

    margin-bottom: 4px;
}


.drawer-header h2 {
    font-size: 25px;

    letter-spacing: -0.5px;
}


.drawer-close {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: var(--background);
    color: var(--text);

    font-size: 27px;

    cursor: pointer;

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


.drawer-close:active {
    transform: scale(0.88);
}


/* DRAWER CONTENT */

.drawer-content {
    display: flex;

    flex-direction: column;

    gap: 6px;

    padding: 16px 12px;
}


.drawer-item {
    width: 100%;

    min-height: 52px;

    border: none;
    border-radius: 14px;

    background: transparent;

    color: var(--text);

    display: flex;

    align-items: center;

    gap: 14px;

    padding:
        12px
        14px;

    font-size: 15px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.15s ease;
}


.drawer-item:hover {
    background: var(--background);
}


.drawer-item:active {
    transform: scale(0.97);
}


.drawer-icon {
    width: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;
}


.drawer-text {
    flex: 1;
}


.danger-item {
    color: var(--danger);
}


/* DRAWER FOOTER */

.drawer-footer {
    margin-top: auto;

    padding:
        18px
        22px;

    border-top:
        1px solid
        var(--border);

    color: var(--secondary);

    font-size: 11px;

    display: flex;

    justify-content: space-between;
}


/* =========================
   LANGUAGE RTL
========================= */
/*
html[dir="rtl"] .app-drawer {
    left: 0;
    right: auto;

    transform: translateX(-100%);

    box-shadow:
        8px 0 30px rgba(0,0,0,0.12);
}

*/
html[dir="rtl"] .app-drawer.open {
    transform: translateX(0);
}


html[dir="rtl"] .drawer-item {
    text-align: right;
}


html[dir="rtl"] .drawer-header {
    direction: rtl;
}


html[dir="rtl"] .drawer-footer {
    direction: rtl;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .menu-btn {
        width: 40px;
        height: 40px;
    }

}

/* Drawer direction */

html[dir="ltr"] .app-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

html[dir="ltr"] .app-drawer.open {
    transform: translateX(0);
}

html[dir="ltr"] .app-drawer {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

html[dir="ltr"] .app-drawer.open {
    transform: translateX(0);
}

html[dir="rtl"] .app-drawer {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

html[dir="rtl"] .app-drawer.open {
    transform: translateX(0);
}
html[dir="rtl"] .app-drawer.open {
    transform: translateX(0);
}


/* Drawer text alignment */

html[dir="ltr"] .drawer-item {
    text-align: left;
    direction: ltr;
}

html[dir="rtl"] .drawer-item {
    text-align: right;
    direction: rtl;
}


/* Keep Welcome + My Tasks centered */

.welcome-section {
    text-align: center;
}

.welcome-section h1,
.welcome-section p {
    text-align: center;
}

/* 
--------------------------
Header layout */

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

html[dir="rtl"] .header-actions {
    left: auto;
    right: 0;
}
.group-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.group-modal.show {
    display: flex;
}

.group-modal-content {
    width: min(420px, 100%);
    background: var(--card);
    color: var(--text);
    border-radius: 22px;
    padding: 24px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.group-modal-content h2 {
    margin-bottom: 20px;
}

.group-modal-content label {
    display: block;
    margin: 12px 0 7px;
    font-size: 14px;
}

.group-modal-content input {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text);
    outline: none;
}

.group-modal-content .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}


/* Create Group Button */
.create-group-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 9px 12px;

    background: var(--card);
    color: var(--primary);

    font-family: inherit;
    font-size: 13px;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;

}

.create-group-btn:active {
    transform: scale(0.94);
    background: var(--primary);
    color: white;
}

.create-group-btn span:first-child {
    font-size: 18px;
    line-height: 1;
}

/*
.modal-close{
 flex-shrink: 0;

    border: none;

    border-radius: 12px;

    padding:
        9px
        12px;

    background: var(--card);

    color: var(--secondary);

    font-size: 13px;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.04);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}
 /*/


/* Desktop: keep groups and Create Group on one row */
@media (min-width: 700px) {
    .groups {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 5px 10px 12px;
        box-sizing: border-box;
        width: 100%;
    }

    .group-btn,
    .create-group-btn {
        flex: 0 0 auto;
    }
}
/* Mobile: keep horizontal scrolling */
@media (max-width: 699px) {
    .groups {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Drawer layout and version visibility */
.app-drawer {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
}

.drawer-content {
    flex-shrink: 0;
}

.drawer-footer {
    flex-shrink: 0;
    gap: 10px;
    padding: 14px 16px;
}

.drawer-footer span {
    min-width: 0;
}

.drawer-footer span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 10px;
}

@media (min-width: 700px) {
    .app {
        max-width: 850px;
    }
}
/* Keep trash task text in normal color */
.trash-actions {
    color: var(--text);
}

.task .task-content p {
    color: var(--text);
}
#taskList .task .task-content p {
    color: var(--text) !important;
}
.trash-task,
.trash-task .task-content p {
    color: var(--text) !important;
}


/* My Tasks — Premium Intro */
#introScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #07090F;
    animation: introFadeOut 0.7s ease 2.9s forwards;
}

/* Blue ambient glow */
#introScreen::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(106, 0, 255, 0.25) 0%,
        rgba(187, 0, 255, 0.09) 40%,
        transparent 72%
    );
    filter: blur(22px);
    animation: bluePulse 3s ease-in-out infinite alternate;
}

.intro-content {
    position: relative;
    text-align: center;
}

#introScreen::after {
    content: "";
    position: absolute;
    top: calc(50% - 55px);
    left: 50%;
    width: 44px;
    height: 2px;
    border-radius: 10px;
    background: #7716ff;
    box-shadow: 0 0 18px #a600ff;
    transform: translateX(-50%) scaleX(0);
    animation: lineReveal 1s ease 0.5s forwards;
}

#introTitle {
    margin: 0;
    color: #8784d1;
    font-size: clamp(40px, 10vw, 64px);
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: -1.8px;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(14px) scale(0.97);
    clip-path: inset(0 100% 0 0);

    animation:
        titleReveal 1.8s cubic-bezier(.2,.7,.2,1) 0.7s forwards;

    transition:
        opacity 0.5s ease,
        filter 0.5s ease,
        transform 0.5s ease;
}

#introCredit {
    margin-top: 15px;
    color: #A5B4CC;
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    animation: creditReveal 1.2s ease 1.9s forwards;
    background: linear-gradient(90deg, #007AFF, #A78BFA, #007AFF);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 200% auto;
animation: creditReveal 1.2s ease 1.9s forwards,
           creditGradient 3s linear 3.1s infinite;
}

@keyframes bluePulse {
    from {
        transform: scale(0.8);
        opacity: 0.55;
    }
    to {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes lineReveal {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(14px) scale(0.97);
        clip-path: inset(0 100% 0 0);
    }
    55% {
        opacity: 1;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
        clip-path: inset(0 0 0 0);
    }
}

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

@keyframes introFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
/*
.intro-content::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: 0 auto ;
    border-radius: 10px;
    background: #7716ff;
    box-shadow: 0 0 18px #a600ff;
    transform: scaleX(0);
    animation: lineReveal 1s ease 1.8s forwards;
}
*/
@keyframes creditGradient {
    to {
        background-position: 200% center;
    }
}
@keyframes creditGradient {
    from { background-position: 0% center; }
    to   { background-position: 100% center; }
}
/* Create Group Modal Buttons */
.group-modal .modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-modal .modal-close:hover {
    background: var(--primary);
    color: white;
}

.group-modal .save-group-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.group-modal .save-group-btn:hover {
    opacity: 0.9;
}

.group-modal .save-group-btn:active {
    transform: scale(0.97);
}
