/* Grundfarben */

:root {
    --fc-primary: #2482ca;
    --fc-primary-soft: #eef2ff;

    --fc-success: #16a34a;
    --fc-warning: #d97706;

    --fc-bg: #f5f7fb;
    --fc-card: #ffffff;

    --fc-border: #e5e7eb;

    --fc-text: #19649d;
    --fc-muted: #6b7280;
}

/* Seite */

body {
    background: var(--fc-bg);
    color: var(--fc-text);
}

/* Karten */


.btn-outline-warning {
    border-color: #b45309;
    color: #b45309;
}

.btn-outline-warning:hover {
    background: #fef3c7;
    border-color: #b45309;
    color: #92400e;
}

.card {
    border: 1px solid var(--fc-border);
    border-radius: 1rem;
    box-shadow:
        0 1px 2px rgba(0,0,0,.03),
        0 8px 24px rgba(0,0,0,.04);
    overflow: hidden;
}

.card-footer,
.card-header {
    background: #fff;
    border-color: var(--fc-border);
}

/* Ordner */

.folder-header {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );
}

/* Buttons */

.btn-primary {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
}

.btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
}

.btn-success {
    background: var(--fc-success);
    border-color: var(--fc-success);
}

/* Outline Buttons subtiler */

.btn-outline-secondary {
    border-color: #d1d5db;
    color: #4b5563;
}

.btn-outline-secondary:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Badges */

.badge.bg-dark {
    background: var(--fc-primary-soft) !important;
    color: var(--fc-primary) !important;
    font-weight: 600;
}

/* Inputs */

.form-control,
.form-select {
    border-radius: .75rem;
    border-color: var(--fc-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fc-primary);
    box-shadow:
        0 0 0 .2rem rgba(79,70,229,.12);
}

/* Suchfeld */

#deckSearch,
#cardSearch {
    background: #fff;
    border: 1px solid var(--fc-border);
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

/* Tabellen */

.table {
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    border-color: var(--fc-border);
}


/* Folder Sections */

.folder-section {
    background: #fff;
    border: 1px solid var(--fc-border);
    box-shadow:
        0 4px 20px rgba(0,0,0,.04);
}

/* Hover */

.card:hover {
    transform: translateY(-1px);
    transition: .15s ease;
}


.study-card .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.study-text {
    font-size: 1.5rem;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 768px) {

    .study-text {
        font-size: 1.2rem;
    }

}


.study-header h3 {
    font-size: 1.45rem;
}

.study-header .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {

    .study-header {
        gap: 0.5rem;
    }

    .study-header h3 {
        font-size: 1.1rem;
    }

    .study-header p {
        font-size: 0.8rem;
    }

}




.vocab-cell {
    cursor: pointer;
    transition: all 0.15s ease;
}
.vocab-cell.blurred {
    user-select: none;
}

.vocab-cell.blurred .vocab-content {
    color: transparent;
    text-shadow: 0 0 10px rgba(31, 41, 55, .35);
}

.vocab-cell.blurred .study-markdown-table-wrap,
.vocab-cell.blurred .study-markdown-table,
.vocab-cell.blurred .study-markdown-table th,
.vocab-cell.blurred .study-markdown-table td {
    color: transparent;
    text-shadow: 0 0 10px rgba(31, 41, 55, .35);
}

.vocab-cell.blurred .study-markdown-table-wrap {
    opacity: 0;
}

.vocab-cell.blurred.revealed .vocab-content {
    color: inherit;
    text-shadow: none;
}

.vocab-cell.blurred.revealed .study-markdown-table-wrap,
.vocab-cell.blurred.revealed .study-markdown-table,
.vocab-cell.blurred.revealed .study-markdown-table th,
.vocab-cell.blurred.revealed .study-markdown-table td {
    color: inherit;
    text-shadow: none;
}

.vocab-cell.blurred.revealed .study-markdown-table-wrap {
    opacity: 1;
}


.folder-section {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
}

.folder-header {
    background: linear-gradient(180deg, #f8f9fa, #ffffff);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.folder-body {
    padding: 1.25rem 1.25rem 0;
}

.folder-toggle i {
    transition: transform .2s ease;
}

.folder-section.is-closed .folder-toggle i {
    transform: rotate(-90deg);
}

.decks-empty-state {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--fc-muted);
    text-align: center;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.decks-empty-state:hover,
.decks-empty-state:focus {
    border-color: var(--fc-primary);
    background: #ffffff;
    color: var(--fc-text);
    transform: translateY(-1px);
}

.decks-empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--fc-border);
    color: var(--fc-primary);
    font-size: 1.8rem;
}

.decks-empty-title {
    color: var(--fc-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.decks-empty-text {
    max-width: 360px;
    font-size: .95rem;
}

.folder-drag-handle {
    cursor: grab;
    font-size: 1.25rem;
    line-height: 1;
}

.folder-drag-handle:active {
    cursor: grabbing;
}

.deck-drag-handle {
    cursor: grab;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.deck-drag-handle:active {
    cursor: grabbing;
}

.deck-item.sortable-ghost {
    opacity: .45;
}

.folder-section.sortable-ghost {
    opacity: .45;


}



/* Normale Deck-Karten */

.deck-card {
    --deck-accent: #2482ca;
    --deck-accent-rgb: 36, 130, 202;
    --deck-surface-start: #f4f9ff;
    --deck-surface-end: #eaf4ff;
    --deck-border: rgba(36, 130, 202, .18);

    position: relative;
    background:
        linear-gradient(145deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,.28) 45%, transparent 100%),
        linear-gradient(160deg, var(--deck-surface-start) 0%, var(--deck-surface-end) 100%);

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

    box-shadow:
        0 2px 8px rgba(var(--deck-accent-rgb), .05),
        0 12px 28px rgba(15, 23, 42, .06);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.deck-tone-1 {
    --deck-accent: #2482ca;
    --deck-accent-rgb: 36, 130, 202;
    --deck-surface-start: #eef8ff;
    --deck-surface-end: #dcefff;
    --deck-border: rgba(36, 130, 202, .2);
}

.deck-tone-2 {
    --deck-accent: #dc6b74;
    --deck-accent-rgb: 220, 107, 116;
    --deck-surface-start: #fff1f2;
    --deck-surface-end: #fde1e5;
    --deck-border: rgba(220, 107, 116, .22);
}

.deck-tone-3 {
    --deck-accent: #e6a843;
    --deck-accent-rgb: 230, 168, 67;
    --deck-surface-start: #fff8e6;
    --deck-surface-end: #fee7b7;
    --deck-border: rgba(214, 151, 36, .24);
}

.deck-tone-4 {
    --deck-accent: #2f9c73;
    --deck-accent-rgb: 47, 156, 115;
    --deck-surface-start: #effbf5;
    --deck-surface-end: #d8f1e6;
    --deck-border: rgba(47, 156, 115, .22);
}

.deck-tone-5 {
    --deck-accent: #8467c7;
    --deck-accent-rgb: 132, 103, 199;
    --deck-surface-start: #f5f1ff;
    --deck-surface-end: #e8ddff;
    --deck-border: rgba(132, 103, 199, .22);
}

.deck-tone-6 {
    --deck-accent: #2f9aa7;
    --deck-accent-rgb: 47, 154, 167;
    --deck-surface-start: #effcff;
    --deck-surface-end: #d8f2f5;
    --deck-border: rgba(47, 154, 167, .22);
}

.deck-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(var(--deck-accent-rgb), .1),
        0 18px 40px rgba(15, 23, 42, .1);
}

.deck-card .card-footer {
    background: rgba(255,255,255,.46) !important;
    border-color: rgba(var(--deck-accent-rgb), .12);
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.deck-card-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-height: 230px;
}

.deck-card-header {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.deck-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.deck-card-title-row {
    display: block;
}

.deck-card-title {
    min-width: 0;
    color: #122033;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.deck-card-count-area {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: .35rem;
}

.deck-summary-badge {
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border: 1px solid transparent;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 .62rem;
    white-space: nowrap;
}

.deck-summary-badge-total {
    border-color: rgba(var(--deck-accent-rgb), .2);
    background: rgba(255,255,255,.52);
    color: #152338;
}

.deck-summary-badge-known {
    border-color: rgba(var(--deck-accent-rgb), .24);
    background: rgba(var(--deck-accent-rgb), .13);
    color: #152338;
}

.deck-known-toggle {
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

.deck-known-toggle:hover,
.deck-known-toggle[aria-expanded="true"] {
    background: rgba(var(--deck-accent-rgb), .2);
    color: #0f172a;
}

.deck-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding-left: 1.8rem;
}

.deck-card-description {
    color: rgba(18, 32, 51, .68) !important;
    min-height: 2.6rem;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deck-learning-stats {
    display: grid;
    gap: .75rem;
}

.deck-learning-stats.collapse.show {
    display: grid;
}

.deck-learning-direction {
    padding-top: .7rem;
    border-top: 1px solid rgba(36, 130, 202, .12);
}

@media (min-width: 768px) {

    .deck-learning-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vocab-main-col {
    font-size: 1rem;
    color: var(--fc-text);
}

.vocab-content {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.vocab-content-long {
    color: #1f2937;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
}

.vocab-collapsible.is-collapsed {
    position: relative;
    max-height: 8.25rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.vocab-more-toggle {
    display: block;
    width: fit-content;
    margin-top: .25rem;
    margin-left: auto;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.vocab-meta {
    margin-top: .35rem;
    font-size: .75rem;
    color: var(--fc-muted);
}

.vocab-cell {
    cursor: pointer;
    vertical-align: top;
}

.vocab-cell.blurred .vocab-content,
.vocab-cell.blurred .vocab-example {
    color: transparent;
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 6px,
        #f3f4f6 6px,
        #f3f4f6 12px
    );
    border-radius: .35rem;
    user-select: none;
}

.vocab-cell.blurred .study-markdown-table-wrap,
.vocab-cell.blurred .study-markdown-table,
.vocab-cell.blurred .study-markdown-table th,
.vocab-cell.blurred .study-markdown-table td {
    color: transparent;
    background: transparent;
    user-select: none;
}

.vocab-cell.blurred .vocab-more-toggle {
    visibility: hidden;
}

.vocab-cell.blurred.revealed .vocab-content,
.vocab-cell.blurred.revealed .vocab-example {
    color: inherit;
    background: transparent;
}

.vocab-cell.blurred.revealed .study-markdown-table {
    color: #1f2937;
}

.vocab-cell.blurred.revealed .study-markdown-table th {
    background: #f8fafc;
    color: #334155;
}

.vocab-cell.blurred.revealed .study-markdown-table td {
    background: transparent;
    color: #1f2937;
}

.vocab-cell.blurred.revealed .vocab-more-toggle {
    visibility: visible;
}


.cards-sticky-toolbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--fc-bg);
    padding: .75rem 0;
}

.cards-sticky-toolbar .form-control {
    max-width: 420px;
}

.card-row.merge-success > td {
    background: #ecfdf5 !important;
    transition: background .4s ease;
}

.card-row.merge-success > td {
    background: #ecfdf5 !important;

    transition:
        background 1.2s ease;
}


.deck-highlight .card,
.deck-highlight.deck-card {
    background: #ecfdf5 !important;
    border-color: #86efac !important;
    box-shadow:
        0 0 0 3px rgba(34,197,94,.18),
        0 10px 28px rgba(34,197,94,.12);
}



.cards-sticky-toolbar .btn-sm {
    min-height: 38px;
    padding-inline: .9rem;
}


.cards-sticky-toolbar .toolbar-search {
    max-width: 280px;
}

.cards-sticky-toolbar .toolbar-btn {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .cards-sticky-toolbar .btn {
        white-space: nowrap;
    }
}



.cards-toolbar-inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.toolbar-search {
    max-width: 240px;
    min-width: 180px;
}

#cardSearch {
    max-width: 360px;
    min-width: 220px;
    flex: 1 1 auto;
}

.state-filter-group {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: nowrap;
}

.state-filter-group.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.state-filter-group .btn {
    min-width: auto;
    padding: .35rem .6rem;
    font-size: .78rem;
    line-height: 1.2;
    border-radius: 999px;
    white-space: nowrap;
}

.state-filter-group .btn i {
    font-size: .85rem;
}

.cards-table-mobile-controls {
    overflow-x: auto;
    padding-bottom: .35rem;
}

.cards-table-mobile-controls .state-filter-group {
    min-width: 100%;
}

.cards-table-mobile-controls .state-filter-group .btn {
    flex: 0 0 auto;
}

.cards-table-mobile-controls .state-filter-group {
    display: flex;
    gap: .35rem;
}

@media (max-width: 767.98px) {
    .table-responsive {
        max-width: 100vw;
        overflow-x: auto;
    }

    .table-responsive .state-filter-group {
        display: none;
    }

    .cards-table-mobile-controls {
        display: block;
    }
}

.toolbar-btn {
    white-space: nowrap;
}

.toolbar-divider {
    width: 1px;
    height: 28px;
    background: #dbe1ea;
    margin-inline: .25rem;
}

@media (max-width: 991px) {

    .cards-toolbar-inner {
        gap: .4rem;
    }

    .toolbar-search {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .toolbar-btn,
    .state-filter {
        padding-inline: .7rem;
    }
}




/* =========================
   STUDY PAGE
========================= */

.study-page {
    max-width: 760px;
    margin: 0 auto;
}

.study-header {
    gap: 1rem;
}

.study-meta {
    font-size: .82rem;
}

.study-progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}


/* =========================
   STUDY CARDS
========================= */

.study-card {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
}

.study-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: .9rem 1rem;
}

.study-card .card-body {
    padding: 2rem 1.25rem;
}

.study-card-help-row {
    display: flex;
    justify-content: flex-end;
    margin: -0.75rem 0 0.75rem;
}

.mnemonic-toast-container {
    margin-top: 4.25rem;
}

@media (min-width: 768px) {

    .study-card .card-body {
        padding: 3rem 2rem;
    }

    .study-card-help-row {
        margin-top: -1.5rem;
    }
}


/* =========================
   TEXT
========================= */

.study-text {
    font-size: clamp(1.65rem, 7vw, 2.7rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.study-answer-text {
    font-size: clamp(1.55rem, 6.5vw, 2.4rem);
}


/* =========================
   BADGES
========================= */

.study-badge {
    font-size: .75rem;
    padding: .45rem .7rem;
}


/* =========================
   MAIN ACTION BUTTON
========================= */

.study-action-main {
    border-radius: 999px;
    padding: .7rem 1.25rem;
    font-weight: 600;
}


/* =========================
   RATING BUTTONS
========================= */

.study-rating-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
}

.study-rating-form .btn {
    border-radius: 999px;
    padding: .7rem .9rem;
    font-size: .92rem;
    font-weight: 600;
}

@media (min-width: 576px) {

    .study-rating-form {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================
   NOTE
========================= */

.study-note {
    border-radius: 1rem;
    font-size: .96rem;
}


/* =========================
   COPY BUTTON
========================= */

.study-copy-button {
    border-radius: 999px;
    font-size: .8rem;
    padding: .35rem .7rem;
}




/* =========================
   RATING BUTTONS
========================= */

.study-rating-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    margin-top: 1.25rem;
}

.study-rating-form .btn {
    border-radius: 1rem;
    padding: .8rem .5rem;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
}

.study-rating-form .btn i {
    font-size: 1.1rem;
}

@media (max-width: 420px) {

    .study-rating-form .btn {
        font-size: .74rem;
        padding: .7rem .35rem;
    }
}



/* =========================
   LEARNING STATE COLORS
========================= */

.study-card.state-active {
    background: rgba(13, 110, 253, 0.06);
}

.study-card.state-okay {
    background: rgba(255, 193, 7, 0.10);
}

.study-card.state-mastered {
    background: rgba(25, 135, 84, 0.08);
}

.study-card.state-new {
    background: #fff;
}
.study-rating-current {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .18);
    outline: 3px solid rgba(255, 255, 255, .95);
    outline-offset: -6px;
}

.study-rating-form .btn {
    transition: transform .15s ease, box-shadow .15s ease;
}



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

.page-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-header h1 i {
    opacity: .8;
}

.btn-app-action {
    border-radius: 999px;
    padding: .55rem .9rem;

    display: inline-flex;
    align-items: center;
    gap: .45rem;

    font-weight: 600;
    white-space: nowrap;
}

.btn-app-action i {
    font-size: .95rem;
}

.deck-toolbar-button {
    white-space: nowrap;
}

@media (max-width: 576px) {

    .navbar-brand span {
        display: none;
    }

    .navbar-brand img {
        width: 36px;
        height: 36px;
    }

    .app-header-actions {
        overflow: visible;
        flex-shrink: 0;
    }

    .btn-app-action > span:not(.account-nav-avatar-empty):not(.account-pro-badge) {
        display: none;
    }

    .btn-app-action {
        width: 42px;
        height: 42px;
        justify-content: center;
        padding: 0;
    }

    .btn-app-action i {
        font-size: 1rem;
    }

    .deck-toolbar {
        flex-wrap: nowrap !important;
    }

    .deck-toolbar-button {
        min-width: 42px;
        height: 42px;
        justify-content: center;
    }

    .deck-toolbar-icon-mobile {
        width: 42px;
        padding-right: 0;
        padding-left: 0;
    }

    .deck-toolbar-icon-mobile span {
        display: none;
    }
}




/* =========================
   FOLDER TITLE
========================= */

.folder-title {
    font-size: 1.1rem;
    font-weight: 600;

    display: flex;
    align-items: center;

    min-width: 0;
    max-width: 100%;
}

.folder-title i {
    flex-shrink: 0;
}

.folder-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {

    .folder-title {
        font-size: .98rem;
        max-width: 180px;
    }
}



.folder-title-wrap {
    min-width: 0;
    flex: 1;
}

.folder-title {
    min-width: 0;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: .35rem;

    font-size: 1.1rem;
    font-weight: 600;

    overflow: hidden;
    white-space: nowrap;
}

.folder-title i {
    flex: 0 0 auto;
}

.folder-title-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




/* =========================
   FOLDER ACTIONS
========================= */

.folder-count-badge {
    background: rgba(0,0,0,.08);
    color: #333;

    border-radius: 999px;

    padding: .4rem .65rem;

    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .78rem;
    font-weight: 600;
}

.btn-folder-add {
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .45rem .8rem;

    font-size: .85rem;
    font-weight: 600;

    white-space: nowrap;
}

.btn-folder-add i {
    font-size: .9rem;
}

@media (max-width: 576px) {

    .btn-folder-add span {
        display: none;
    }

    .btn-folder-add {
        width: 38px;
        height: 38px;

        justify-content: center;

        padding: 0;
    }
}



/* =========================
   STUDY FINISH ACTIONS
========================= */

.study-finish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;

    margin-top: 1.25rem;
}

.btn-finish-action,
.btn-finish-action-primary {

    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;

    padding: .7rem 1rem;

    font-weight: 600;

    min-height: 48px;
}

.btn-finish-action-primary {
    flex: 1;
}

@media (max-width: 576px) {

    .study-finish-actions {
        flex-direction: column;
    }

    .btn-finish-action,
    .btn-finish-action-primary {
        width: 100%;
    }
}




/* =========================
   FOLDER LIST PAGE
========================= */

.folder-list-card {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
}

.folder-list-header {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-weight: 700;
    padding: 1rem 1.1rem;
}

.folder-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1rem 1.1rem;
}

.folder-list-main {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: .65rem;
}

.folder-list-title-wrap {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: .45rem;
}

.folder-list-icon {
    flex: 0 0 auto;
    color: var(--bs-primary);
}

.folder-list-title {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 1rem;
}

.folder-list-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: .45rem;
}

.btn-folder-list-action {
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;

    padding: .45rem .75rem;

    font-size: .84rem;
    font-weight: 600;

    white-space: nowrap;
}

.folder-empty {
    display: flex;
    align-items: center;
    gap: .5rem;

    padding: 1rem 1.1rem;
}

@media (max-width: 576px) {

    .folder-list-item {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
    }

    .folder-list-main {
        justify-content: space-between;
    }

    .folder-list-title {
        max-width: 220px;
        font-size: .98rem;
    }

    .folder-list-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: .5rem;
    }

    .btn-folder-list-action {
        min-height: 42px;
        padding: .45rem .35rem;

        font-size: .78rem;
    }

    .btn-folder-list-action span {
        display: none;
    }

    .btn-folder-list-action i {
        font-size: 1rem;
    }
}


.folder-highlight {
    background: rgba(25, 135, 84, .14) !important;
    box-shadow: inset 4px 0 0 var(--bs-success);
    transition: background .4s ease, box-shadow .4s ease;
}


.folder-list-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;

    margin-top: .1rem;

    font-size: .72rem;
    color: rgba(0,0,0,.6);
}

.folder-list-language,
.folder-list-mode {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.folder-list-language i,
.folder-list-mode i {
    opacity: .7;
    font-size: .72rem;
}



.deck-edit-card {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
}

.deck-edit-section {
    padding: 1rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.deck-edit-section-primary {
    background: rgba(13,110,253,.04);
    border-color: rgba(13,110,253,.18);
}

.deck-edit-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    margin-bottom: .9rem;
}

.deck-edit-section-title i {
    color: var(--bs-primary);
}

.deck-edit-footer {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

@media (max-width: 576px) {
    .deck-edit-footer {
        flex-direction: column-reverse;
    }

    .deck-edit-footer .btn {
        width: 100%;
    }
}


/* =========================
   FORM PLACEHOLDERS
========================= */

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
    color: rgba(0, 0, 0, .32);
    opacity: 1;
    font-weight: 400;
}

.form-control:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(0, 0, 0, .22);
}



.cards-action-col {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .table-responsive {
        overflow-x: auto;
        max-width: 100vw;
    }

    .cards-action-col {
        position: sticky;
        right: 0;
        background: #fff;
        z-index: 2;
    }

    .table-striped > tbody > tr:nth-of-type(odd) > .cards-action-col {
        background: #f8f9fa;
    }
}



.card-actions-mobile {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .card-actions-mobile {
        opacity: 0;
        transition: opacity .15s ease;
    }

    .card-row:hover .card-actions-mobile {
        opacity: 1;
    }
}


.ai-card {
    border: 1px solid rgba(13,110,253,.2);
    box-shadow: 0 0 20px rgba(13,110,253,.08);
}


.vocab-example {
    margin-top: .35rem;
    font-size: .78rem;
    line-height: 1.35;
    color: #6c757d;
    opacity: .85;
    font-style: italic;
}


.card-row:target {
    scroll-margin-top: 150px;
}

.card-row:target > td {
    background: #fff7d6 !important;
}


.vocab-speak-btn {
    font-size: .9rem;
    margin-top: .2rem;
}


.speak-col {
    width: 38px;
    min-width: 38px;
    text-align: center;
    vertical-align: top;
}

.speak-col .btn {
    font-size: 1rem;
}


.min-vh-75 {
    min-height: 75vh;
}

.hero-login-image {
    max-width: 100%;
    height: auto;

    filter:
        drop-shadow(0 20px 40px rgba(36,130,202,.12));

    border-radius: 1rem;
}


.login-forgot-link {
    font-size: .9rem;
    color: var(--fc-muted);
    text-decoration: none;
}

.login-forgot-link:hover {
    color: var(--fc-primary);
}

.hero-highlight {
    color: var(--fc-primary);
    position: relative;
}

.hero-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 0.25em;
    background: rgba(36,130,202,.15);
    z-index: -1;
    border-radius: 999px;
}



.stats-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(36,130,202,.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #eef6ff);
}

.stats-kicker {
    color: var(--fc-primary);
    font-weight: 700;
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--fc-text);
}

.stat-ring {
    --size: 132px;
    --thickness: 14px;
    --value: 0;

    width: var(--size);
    height: var(--size);
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;

    background:
        conic-gradient(
            var(--fc-primary) calc(var(--value) * 1%),
            #dbeafe 0
        );

    display: grid;
    place-items: center;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(36,130,202,.14);
}

.stat-ring::before {
    content: "";
    position: absolute;
}

.stat-ring-inner {
    width: calc(var(--size) - var(--thickness) * 2);
    height: calc(var(--size) - var(--thickness) * 2);
    border-radius: 50%;
    background: #fff;

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

.stat-ring-inner strong {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--fc-text);
}

.stat-ring-inner span {
    font-size: .75rem;
    color: var(--fc-muted);
    margin-top: .25rem;
}

.stat-card {
    border-radius: 1.25rem;
    padding: 1.2rem;
    min-height: 118px;

    display: flex;
    align-items: center;
    gap: 1rem;

    background: #fff;
    box-shadow:
        0 1px 2px rgba(0,0,0,.03),
        0 10px 28px rgba(0,0,0,.05);
}

.stat-card i {
    width: 48px;
    height: 48px;
    border-radius: 1rem;

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

    font-size: 1.4rem;
}

.stat-card-blue i {
    background: #dbeafe;
    color: #1d4ed8;
}

.stat-card-green i {
    background: #dcfce7;
    color: #15803d;
}

.stat-card-yellow i {
    background: #fef3c7;
    color: #b45309;
}

.stat-card-purple i {
    background: #ede9fe;
    color: #6d28d9;
}

.stat-value {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 800;
    color: var(--fc-text);
}

.stat-label {
    margin-top: .25rem;
    color: var(--fc-muted);
    font-size: .85rem;
}

.week-chart {
    height: 220px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .75rem;
    align-items: end;
}

.week-chart-day {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.week-chart-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: end;
}

.week-chart-bar {
    width: 100%;
    border-radius: 999px 999px .35rem .35rem;
    background: linear-gradient(180deg, #2482ca, #7cb7e8);
    min-height: 8px;
    box-shadow: 0 8px 18px rgba(36,130,202,.18);
}

.week-chart-count {
    font-weight: 700;
    margin-top: .5rem;
    color: var(--fc-text);
}

.week-chart-label {
    font-size: .75rem;
    color: var(--fc-muted);
}

.stat-ring-large {
    --size: 180px;
    --thickness: 18px;
}

.stat-ring-large .stat-ring-inner strong {
    font-size: 2.2rem;
}


.learning-trend-chart {
    height: 260px;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.03) 1px,
            transparent 1px
        );
    background-size: 100% 25%;
}

.learning-trend-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.trend-line {
    fill: none;
    stroke-width: 2.5;
}

.trend-line-okay {
    stroke: #f59e0b;
}

.trend-line-mastered {
    stroke: #10b981;
}

.trend-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    margin-right: .35rem;
}

.trend-dot-okay {
    background: #f59e0b;
}

.trend-dot-mastered {
    background: #10b981;
}


.stat-ring-large {
    --size: clamp(220px, 62vw, 340px);
    --thickness: clamp(18px, 5vw, 34px);
}

.stat-ring-large .stat-ring-inner strong {
    font-size: clamp(3rem, 13vw, 5rem);
    letter-spacing: -0.05em;
}

.stat-ring-large .stat-ring-inner span {
    font-size: clamp(.85rem, 3vw, 1.05rem);
}

@media (max-width: 576px) {
    .stats-hero .card-body {
        padding: 1.5rem !important;
    }

    .stats-title {
        font-size: 2rem;
    }

    .stat-ring-large {
        margin-top: 1rem;
    }
}


.navbar-brand span {
    color: var(--fc-text);
    font-weight: 600;
}




.app-navbar {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-bottom: 1px solid var(--fc-border);
}

.navbar-brand span {
    color: var(--fc-text);
    font-weight: 600;
}

.app-header-actions {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: .15rem;
}

.app-header-actions.dropdown-open {
    overflow: visible;
}

.app-header-actions::-webkit-scrollbar {
    display: none;
}

.app-header-actions {
    scrollbar-width: none;
}


.app-navbar {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-bottom: 1px solid var(--fc-border);
}

.navbar-brand span {
    color: var(--fc-text);
    font-weight: 600;
}

.dropdown-toggle::after {
    display: none;
}

@media (max-width: 768px) {

    .app-header-actions {
        overflow-x: auto;
        padding-bottom: .15rem;
        scrollbar-width: none;
    }

    .app-header-actions.dropdown-open {
        overflow: visible;
    }

    .app-header-actions::-webkit-scrollbar {
        display: none;
    }

    .app-header-actions > * {
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {

    .app-header-actions {
        overflow: visible;
        padding-bottom: 0;
    }
}



.app-nav-main {
    box-shadow: 0 6px 16px rgba(36, 130, 202, 0.22);
}

.app-header-actions {
    margin-left: auto;
}


.stats-hero .text-muted strong {
    color: var(--fc-text);
    font-weight: 700;
}


.card-edit-form .card-body {
    background: #f8fafc;
}

.edit-section {
    background: #ffffff;
    border: 1px solid var(--fc-border);
    border-radius: 18px;
    padding: 1.25rem;
}

.edit-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.edit-section-title {
    margin: 0;
    font-weight: 700;
    color: var(--fc-text);
    display: flex;
    align-items: center;
    gap: .45rem;
}

.edit-section-subtitle {
    color: var(--fc-muted);
    font-size: .875rem;
    margin-top: .2rem;
}

.ai-section {
    border-color: rgba(36, 130, 202, .22);
    background:
        linear-gradient(180deg, rgba(36, 130, 202, .055), rgba(255,255,255,1) 44%);
}

.ai-section-grid {
    display: grid;
    gap: 1.5rem;
}

.btn-ai {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--fc-primary), #7c3aed);
    box-shadow: 0 8px 20px rgba(36, 130, 202, .22);
}

.btn-ai:hover {
    color: #fff;
    filter: brightness(.97);
}

.card-plausibility-original,
.card-plausibility-suggestion {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 8px;
    padding: .65rem .75rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.card-plausibility-original {
    color: #7c2d12;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.card-plausibility-suggestion {
    color: #14532d;
    font-weight: 600;
}

.merkbild-preview {
    background: #ffffff;
    border: 1px dashed rgba(36, 130, 202, .35);
    border-radius: 16px;
    padding: 1rem;
}

.merkbild-img {
    width: 100%;
    max-width: 360px;
    max-height: 210px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

.merkbild-empty {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: var(--fc-muted);
}

.merkbild-empty i {
    font-size: 2rem;
    opacity: .65;
}

@media (max-width: 576px) {
    .edit-section-header {
        flex-direction: column;
    }

    .edit-section-header .btn {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .ai-section-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .ai-section-grid > .edit-section {
        min-width: 0;
    }
}


.ai-badge {
    background: rgba(124, 58, 237, .12);
    color: #7c3aed;
    font-weight: 600;
}


.study-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.study-image-wrap {
    text-align: center;
}

.study-image {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.study-text {
    font-size: clamp(1.55rem, 5vw, 2.15rem);
    line-height: 1.28;
}

.study-answer-text {
    font-weight: 700;
}

.study-answer-text-long {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #1f2937;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
    text-align: left;
}

.study-answer-text-long .btn {
    margin-right: .25rem;
    vertical-align: baseline;
}

.study-markdown-table-wrap {
    max-width: 760px;
    margin: .5rem auto;
    text-align: left;
}

.study-markdown-table {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 8px;
    color: #1f2937;
    font-size: clamp(.9rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
}

.study-markdown-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.study-markdown-table th,
.study-markdown-table td {
    padding: .6rem .75rem;
    vertical-align: top;
}

.study-answer-panel {
    border-top: 1px solid rgba(15, 23, 42, .1);
    padding-top: 1.5rem;
}

.study-card.answer-visible .study-question-text {
    color: #64748b;
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0;
}

.study-card.answer-visible .study-question-text .btn {
    vertical-align: baseline;
}

.study-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

@media (max-width: 576px) {
    .study-image {
        max-width: 100%;
        height: 160px;
    }
}






.speaking {
    color: var(--fc-primary) !important;
}

.speaking i,
.speaking .bi {
    display: inline-block !important;
    animation: speakingPulse .7s ease-in-out infinite !important;
    transform-origin: center center;
}

@keyframes speakingPulse {
    0% {
        transform: scale(1);
        opacity: .35;
    }

    50% {
        transform: scale(1.6);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: .35;
    }
}


.study-start-card {
    max-width: 640px;
    margin: 0 auto;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

.study-start-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.study-start-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex: 0 0 auto;
}

.study-start-section {
    margin-bottom: 1rem;
}

.study-option-box {
    background: linear-gradient(180deg, rgba(36, 130, 202, .06), rgba(255,255,255,1));
    border: 1px solid rgba(36, 130, 202, .18);
    border-radius: 18px;
    padding: 1rem;
}

.study-start-card .card-footer {
    border-top: 1px solid rgba(15, 23, 42, .06);
}

@media (max-width: 576px) {
    .study-start-card .card-body {
        padding: 1.25rem !important;
    }

    .study-start-header {
        align-items: flex-start;
    }
}


.study-listen-label {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--fc-muted);
    opacity: 0.8;
}


.study-speech-hint {
    text-align: right;
    font-size: 0.72rem;
    color: var(--fc-muted);
    line-height: 1.35;
}

.study-speech-hint a {
    display: inline-block;
    margin-top: 0.1rem;
    color: var(--fc-primary);
    text-decoration: none;
}

.study-speech-hint a:hover {
    text-decoration: underline;
}


.btn-hearing-disabled,
.btn-hearing-disabled:hover,
.btn-hearing-disabled:focus {
    border-color: var(--fc-border) !important;
    color: #adb5bd !important;
    background: #fafbfc !important;
    opacity: 1 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.account-avatar-preview {
    width: 160px;
    max-width: 100%;
    aspect-ratio: 1;
    flex: 0 0 auto;
}

.account-avatar-image,
.account-avatar-empty {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.account-avatar-image {
    display: block;
    object-fit: cover;
    border: 1px solid var(--fc-border);
}

.account-avatar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px dashed var(--fc-border);
    background: #f8fafc;
    color: var(--fc-muted);
    text-align: center;
}

.account-avatar-empty i {
    font-size: 2rem;
}

.account-avatar-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    border: 1.5px dashed var(--fc-border);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.account-avatar-dropzone:hover,
.account-avatar-dropzone.is-dragover {
    border-color: var(--fc-primary);
    background: rgba(36, 130, 202, .05);
}

.account-avatar-dropzone.is-dragover {
    transform: translateY(-1px);
}

.account-avatar-dropzone-text {
    font-weight: 700;
    color: var(--fc-text);
}

.account-avatar-dropzone-help {
    max-width: 280px;
    font-size: .82rem;
    color: var(--fc-muted);
}

.account-avatar-crop {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    background: #ffffff;
}

.account-avatar-crop-canvas {
    display: block;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--fc-border);
    background: #f8fafc;
}

.account-avatar-remove-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-account-avatar {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    border-color: transparent;
    background: transparent;
}

.btn-account-avatar:hover,
.btn-account-avatar:focus,
.btn-account-avatar.show {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.account-nav-avatar-image,
.account-nav-avatar-empty {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.account-nav-avatar-image {
    object-fit: cover;
}

.account-nav-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            hsl(var(--account-avatar-hue), 72%, 54%),
            hsl(calc(var(--account-avatar-hue) + 32), 78%, 42%)
        );
}

.account-nav-avatar-empty i {
    font-size: 1.15rem;
    line-height: 1;
}

.account-readonly-field[readonly] {
    background: #f1f3f5;
    color: var(--fc-muted);
    border-color: var(--fc-border);
    cursor: not-allowed;
}

.account-static-value {
    min-height: 38px;
    padding: .45rem 0;
    color: var(--fc-muted);
    word-break: break-word;
}

.account-subscription-card {
    border: 1px solid rgba(36, 130, 202, .14);
}

.account-subscription-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 .75rem;
    font-size: .82rem;
    font-weight: 700;
    background: rgba(100, 116, 139, .12);
    color: #475569;
}

.account-subscription-status.is-pro {
    background: rgba(34, 197, 94, .14);
    color: #166534;
}

.account-subscription-status.is-canceled {
    background: rgba(245, 158, 11, .18);
    color: #92400e;
}

.account-subscription-action {
    display: inline-grid;
    gap: .75rem;
    justify-items: start;
}

.account-subscription-meta {
    display: grid;
    gap: .55rem;
    min-width: min(100%, 260px);
}

.account-subscription-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.account-subscription-meta > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.account-subscription-meta span {
    color: var(--fc-muted);
}

.account-subscription-meta strong {
    color: var(--fc-text);
}

.upgrade-status-card {
    border: 1px solid rgba(34, 197, 94, .2);
}

.upgrade-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: rgba(34, 197, 94, .14);
    color: #166534;
    font-size: 1.25rem;
}

.upgrade-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.upgrade-product-card {
    height: 100%;
    border: 1px solid rgba(15, 23, 42, .1);
}

.upgrade-product-card.is-featured {
    border-color: rgba(36, 130, 202, .38);
    box-shadow: 0 12px 28px rgba(36, 130, 202, .12) !important;
}

.upgrade-product-type,
.upgrade-product-description {
    color: var(--fc-muted);
}

.upgrade-product-type {
    font-size: .85rem;
    font-weight: 700;
}

.upgrade-product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 .65rem;
    background: rgba(36, 130, 202, .12);
    color: #155e93;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.upgrade-product-price {
    margin-bottom: .85rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fc-text);
    line-height: 1.1;
}

.upgrade-product-description {
    min-height: 48px;
    margin-bottom: 1rem;
}

.upgrade-feature-list {
    display: grid;
    gap: .55rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.upgrade-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    color: var(--fc-text);
}

.upgrade-feature-list i {
    color: #16805a;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .upgrade-product-grid {
        grid-template-columns: 1fr;
    }

    .upgrade-product-description {
        min-height: 0;
    }
}



.account-pro-badge {
    position: absolute;
    bottom: 1px;
    right: 1px;

    width: 12px;
    height: 12px;

    border-radius: 50%;
    background: #00f58a;

    border: 2px solid #fff;

   

    z-index: 2;
}

.account-pro-badge.is-canceled {
    background: #ffb020;

}
