/* SuWord family design – gradient background, white content card, shared footer */

:root {
    --primary-purple: #667eea;
    --secondary-purple: #764ba2;
    --suword-white: #ffffff;
    --suword-light-gray: #f5f5f5;
    --suword-dark-gray: #333333;
    --suword-text-gray: #666666;
}

[data-theme="night"] {
    --primary-purple: #4c51bf;
    --secondary-purple: #2d3748;
    --suword-white: #2d3748;
    --suword-light-gray: #1a202c;
    --suword-dark-gray: #e2e8f0;
    --suword-text-gray: #a0aec0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    min-height: 100vh;
    padding: 20px 0;
    color: var(--suword-dark-gray);
}

.page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.page-card {
    background: var(--suword-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Header on gradient */
.site-header.app-site-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
}

.app-header-start,
.app-header-end {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.site-header__titles {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.site-brand {
    margin: 0;
    font-size: clamp(1.85rem, 8vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-brand a {
    color: #fff;
    text-decoration: none;
}

.site-brand a:hover {
    color: #fff;
    opacity: 0.92;
}

.header-about-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.header-about-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Hamburger / back button – flat, no circle */
.header-flat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.18s;
    flex-shrink: 0;
}

.header-flat-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.header-flat-btn i {
    pointer-events: none;
}

/* Language dropdown – same pattern as profile menu */
.app-site-header .language-dropdown {
    position: relative;
    z-index: 1011;
}

.app-site-header {
    position: relative;
    z-index: 100;
    overflow: visible;
}

.app-site-header .language-menu {
    min-width: 200px;
    max-width: min(280px, 92vw);
    max-height: min(70vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1010;
}

.lang-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    flex-shrink: 0;
}

.lang-code-badge--trigger {
    min-width: 2.2rem;
    font-size: 0.72rem;
}

.app-site-header .language-option .lang-code-badge {
    background: rgba(102, 126, 234, 0.12);
    color: #4456b8;
}

.app-site-header .language-option.active .lang-code-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.app-site-header .language-dropdown:has(#language-menu.show) .lang-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

.app-site-header .lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 9px;
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.app-site-header .lang-trigger:hover {
    background: rgba(255, 255, 255, 0.28);
}

.app-site-header .lang-trigger .fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s;
    pointer-events: none;
}

.app-site-header .lang-trigger .flag-img,
.app-site-header .lang-trigger .lang-current {
    pointer-events: none;
}

.app-site-header .lang-trigger .flag-img,
.app-site-header .language-option .flag-img {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.app-site-header .lang-trigger .lang-current {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.app-site-header .language-menu form {
    display: block;
    margin: 0;
    padding: 0;
}

/* Profile toggle – kaip kalbos mygtukas, be apvado */
.app-site-header .profile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.app-site-header .profile-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
}

.app-site-header .profile-toggle i {
    color: #fff;
    pointer-events: none;
}

.app-site-header .language-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.92rem;
    color: #333;
    cursor: pointer;
    transition: background 0.13s;
    font-family: inherit;
}

.app-site-header .language-option:hover {
    background: #f0f0f0;
}

.app-site-header .language-option.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.app-site-header .language-option.active:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
}

/* About link – icon only, rightmost */
.header-about-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.header-about-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.app-site-header .header-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.main-content {
    margin-top: 0;
    margin-bottom: 0;
    min-height: auto;
}

.content-wrapper {
    padding: 0;
}

/* Primary buttons – pass.suword.com „Sugeneruoti“ (vientisa spalva, ne gradientas) */
.btn-primary {
    background: var(--primary-purple);
    color: #fff !important;
    border-color: transparent;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: #5a6fd6;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.28);
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-purple) !important;
    border-color: var(--primary-purple);
}

/* Mygtukai: P = plokščias · G = gradientas · K = kontūras · KM = maži kontūriniai — žr. /stiliai/
   P4 mėlynas · G1 žalias · G6 raudonas · G7 pilkas · K4 mėlynas · K7 pilkas · KM7 pilkas Z1 aukštis */
.btn-k7 {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #adb5bd;
    font-weight: 600;
}

.btn-k7:hover:not(:disabled) {
    background-color: rgba(108, 117, 125, 0.12);
    color: #495057 !important;
    border-color: #6c757d;
}

/* KM – Kontūriniai maži mygtukai: K4 (2px kontūras) + Z1 aukštis — žr. /stiliai/
   KM1 žalias · KM2 geltonas · KM3 oranžinis · KM4 mėlynas · KM5 violetinis · KM6 raudonas · KM7 pilkas */
.btn.btn-km1,
.btn.btn-km2,
.btn.btn-km3,
.btn.btn-km4,
.btn.btn-km5,
.btn.btn-km6,
.btn.btn-km7 {
    display: inline-block;
    min-height: unset;
    min-width: unset;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: bold;
    background-color: transparent;
    vertical-align: middle;
}

.btn.btn-km1 {
    color: #155724;
    border-color: #155724;
}

.btn.btn-km1:hover:not(:disabled) {
    background-color: rgba(21, 87, 36, 0.1);
    color: #155724 !important;
    border-color: #155724;
}

.btn.btn-km2 {
    color: #856404;
    border-color: #856404;
}

.btn.btn-km2:hover:not(:disabled) {
    background-color: rgba(133, 100, 4, 0.1);
    color: #856404 !important;
    border-color: #856404;
}

.btn.btn-km3 {
    color: #b45309;
    border-color: #b45309;
}

.btn.btn-km3:hover:not(:disabled) {
    background-color: rgba(180, 83, 9, 0.1);
    color: #b45309 !important;
    border-color: #b45309;
}

.btn.btn-km4 {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.btn.btn-km4:hover:not(:disabled) {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-purple) !important;
    border-color: var(--primary-purple);
}

.btn.btn-km5 {
    color: #4456b8;
    border-color: #4456b8;
}

.btn.btn-km5:hover:not(:disabled) {
    background-color: rgba(68, 86, 184, 0.1);
    color: #4456b8 !important;
    border-color: #4456b8;
}

.btn.btn-km6 {
    color: #dc3545;
    border-color: #dc3545;
}

.btn.btn-km6:hover:not(:disabled) {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
    border-color: #dc3545;
}

.btn.btn-km7 {
    color: #6c757d;
    border-color: #6c757d;
}

.btn.btn-km7:hover:not(:disabled) {
    background-color: rgba(108, 117, 125, 0.12);
    color: #495057 !important;
    border-color: #6c757d;
}

.btn-gradient-success,
.btn-gradient-danger,
.btn-gradient-secondary {
    border-color: transparent;
    font-weight: 600;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.btn-gradient-success:hover:not(:disabled) {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #ff6b7a 0%, #dc3545 100%);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-gradient-danger:hover:not(:disabled) {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
}

.btn-gradient-secondary {
    background: linear-gradient(135deg, #dee2e6 0%, #adb5bd 100%);
    color: #495057 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-gradient-secondary:hover:not(:disabled) {
    color: #212529 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-gradient-danger:disabled,
.btn-gradient-danger.is-hidden {
    display: none;
}

/* Nuorodos tik baltame turinio lange – ne ant gradiento */
.page-card a:not(.btn):not(.action-card) {
    color: var(--primary-purple);
}

.page-card a:not(.btn):not(.action-card):hover {
    color: var(--secondary-purple);
}

/* Gradiento zona: titulas ir footer – visada šviesūs */
.page-wrap .app-site-header .site-brand,
.page-wrap .app-site-header .site-brand a,
.page-wrap .app-site-header .site-brand a:link,
.page-wrap .app-site-header .site-brand a:visited,
.page-wrap .app-site-header .site-brand a:hover,
.page-wrap .app-site-header .site-brand a:active {
    color: #fff;
    text-decoration: none;
}

.page-wrap .app-site-header .site-brand a:hover {
    opacity: 0.92;
}

.contact-section a.footer-text-link,
.contact-section a.footer-text-link:link,
.contact-section a.footer-text-link:visited {
    color: rgba(255, 255, 255, 0.65);
}

.contact-section a.footer-text-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Footer (from pass.suword.com) */
.contact-section {
    text-align: center;
    padding: 0.5rem 0 1.5rem;
}

/* Footer – exact layout as pass.suword.com */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
}

.footer-vsep {
    display: block;
    width: 1px;
    height: 1em;
    background: rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
    align-self: center;
    margin: 0;
}

.footer-text-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-text-link:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.contact-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s, text-decoration-color 0.2s;
}

.contact-link-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.page-wrap > footer {
    text-align: center;
    padding: 2rem 0 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contact modal */
.contact-modal-body {
    text-align: center;
    padding: 0.25rem 0 0.5rem;
}

.contact-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
}

.contact-modal-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.25rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.modal--open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-box {
    position: relative;
    z-index: 601;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: suword-modal-in 0.22s ease;
}

@keyframes suword-modal-in {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-address-box {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.75rem;
}

.modal-address {
    display: block;
    font-size: 0.78rem;
    color: #333;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    cursor: text;
    user-select: all;
}

.modal-copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, background 0.3s;
    font-family: inherit;
}

.modal-copy-btn:hover {
    opacity: 0.85;
}

.modal-copy-btn.copied {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

/* Ženkliukų etalonas (Z): šviesus pastelinis fonas + tamsus to paties atspalvio tekstas
   Z1 žalia · Z2 geltona · Z3 oranžinė · Z4 mėlyna · Z5 violetinė
   Z6 #D55B26 · Z7 #FF7F27 · Z8 #FFC90E — žr. /stiliai/ */
.privacy-badge,
.card-type-label,
.dictionary-languages,
.suword-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.2;
    vertical-align: middle;
}

/* Žalia */
.privacy-badge.public,
.card-type-label.new,
.suword-badge-green {
    background: #d4edda;
    color: #155724;
}

/* Geltona */
.privacy-badge.private,
.suword-badge-yellow {
    background: #fff3cd;
    color: #856404;
}

/* Oranžinė (Z3) – tik Kartojimas */
.card-type-label.review {
    background: #ffe8cc;
    color: #b45309;
}

/* Rausva – redagavimo režimas */
.card-type-label.edit-mode {
    background: #fce4ec;
    color: #c2185b;
}

/* Z6 – simbolis #D55B26 (home mokymosi sesijos) */
.suword-badge-z6,
.action-card-badge.suword-badge-z6 {
    background: #fceee6;
    color: #d55b26;
}

/* Z7 – simbolis #FF7F27 */
.suword-badge-z7 {
    background: #fff0e6;
    color: #ff7f27;
}

/* Z8 – simbolis #FFC90E */
.suword-badge-z8 {
    background: #fffce8;
    color: #ffc90e;
}

/* Mėlyna (Z4) */
.dictionary-languages,
.suword-badge-blue {
    background: #e7f3ff;
    color: #0066cc;
}

/* Violetinė (Z5) */
.suword-badge-purple,
.card-count {
    background: #e8ebfd;
    color: #4456b8;
}

.card-type-label {
    margin-left: 0.5em;
}

/* Dictionary list / library pages */
.dictionaries-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dictionaries-page .page-title {
    margin: 0;
}

.dictionaries-page .header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.dictionaries-page .section-block {
    margin-bottom: 2rem;
}

.dictionaries-page .section-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-purple);
    color: var(--suword-dark-gray, #333);
}

.dictionaries-list {
    background: var(--suword-white, #fff);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.dictionaries-list .dictionary-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f8f9fa;
    gap: 1rem;
    transition: background-color 0.2s;
}

.dictionaries-list .dictionary-item:hover {
    background: #f8f9fa;
}

.dictionaries-list .dictionary-item:last-child {
    border-bottom: none;
}

.dictionaries-list .dictionary-item.library-row {
    justify-content: space-between;
}

.dictionaries-list .dictionary-info {
    flex: 1;
    min-width: 0;
}

.dictionaries-list .dictionary-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 0.25rem;
}

.dictionaries-list .dictionary-name a {
    color: var(--primary-purple);
    text-decoration: none;
}

.dictionaries-list .dictionary-name a:hover {
    text-decoration: underline;
}

.dictionaries-list .dictionary-description {
    color: #6c757d;
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.dictionaries-list .dictionary-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.dictionaries-list .dictionary-stats {
    color: #6c757d;
}

.dictionaries-page .dictionary-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.dictionaries-page .dictionary-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.dictionaries-page .dictionary-checkbox input {
    opacity: 0;
    position: absolute;
}

.dictionaries-page .dictionary-checkbox .checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
}

.dictionaries-page .dictionary-checkbox input:checked + .checkmark {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.dictionaries-page .dictionary-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dictionaries-page .empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
}

.dictionaries-page .empty-inline {
    padding: 1rem;
    color: #6c757d;
    font-style: italic;
}


/* Auth pages */
.auth-page .page-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.auth-page .main-content {
    margin: 0;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.auth-page .contact-section,
.auth-page .page-wrap > footer {
    display: none;
}

/* Night theme card adjustments */
[data-theme="night"] .page-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="night"] .action-card,
[data-theme="night"] .goal-card,
[data-theme="night"] .feature-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    body {
        padding: 12px 0;
    }

    .page-card {
        padding: 16px;
    }

    .site-header.app-site-header {
        flex-wrap: wrap;
    }

    .site-header__titles {
        order: -1;
        flex: 1 0 100%;
        text-align: center;
    }
}
