:root {
    --color-bg: #E8E3D4;
    --color-text: #72706D;
    --color-text-hover: #5a5754;
    --color-accent: rgba(139, 115, 85, 0.7);
    --grad-light: rgba(180, 175, 165, 0.42) 0%, rgba(180, 175, 165, 0.2) 50%, rgba(180, 175, 165, 0.04) 100%;
    --grad-light-hover: rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 50%, rgba(150, 140, 125, 0.08) 100%;
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --color-bg: #0f0f0f;
    --color-text: #e8e8e8;
    --color-text-hover: #ff6b6b;
    --color-accent: rgba(220, 20, 60, 0.6);
    --grad-light: rgba(40, 35, 35, 0.6) 0%, rgba(30, 25, 25, 0.4) 50%, rgba(20, 20, 20, 0.2) 100%;
    --grad-light-hover: rgba(50, 40, 40, 0.7) 0%, rgba(40, 30, 30, 0.5) 50%, rgba(30, 25, 25, 0.3) 100%;
}

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

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    min-height: 100vh;
    color: var(--color-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, div {
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dark-mode {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 50, 50, 0.03) 2px, rgba(255, 50, 50, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 50, 50, 0.03) 2px, rgba(255, 50, 50, 0.03) 4px),
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 34, 34, 0.06) 0%, transparent 50%),
        #0f0f0f;
}

body.dark-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(220, 20, 60, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(178, 34, 34, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 50% 90%, rgba(139, 0, 0, 0.05) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .portfolio { position: relative; z-index: 1; }

body.dark-mode .navbar {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(30, 30, 30, 0.5) 100%),
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, rgba(60, 20, 20, 0.1) 50%, rgba(30, 30, 30, 0.05) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .navbar:hover {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.6) 0%, rgba(25, 25, 25, 0.4) 50%, rgba(35, 35, 35, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(178, 34, 34, 0.2) 0%, rgba(80, 25, 25, 0.15) 50%, rgba(40, 40, 40, 0.08) 100%);
}

body.dark-mode .nav-link:hover, body.dark-mode .project-card:hover .project-title { color: #ff6b6b; }

body.dark-mode .nav-link, body.dark-mode .section-title, body.dark-mode .name-widget h1, body.dark-mode .subtitle, body.dark-mode .text-bubble p, body.dark-mode .project-title, body.dark-mode .project-desc, body.dark-mode .certificate-name, body.dark-mode .certificate-date, body.dark-mode .certificate-card a, body.dark-mode .contact-link, body.dark-mode .social-dot i { color: #e8e8e8; }

body.dark-mode .name-widget, body.dark-mode .photo-widget, body.dark-mode .text-bubble, body.dark-mode .project-card, body.dark-mode .certificate-card, body.dark-mode .contact-widget, body.dark-mode .social-dot {
    background: radial-gradient(ellipse at center, var(--grad-light));
    border: 1px solid rgba(220, 20, 60, 0.15);
}

body.dark-mode .name-widget:hover, body.dark-mode .photo-widget:hover, body.dark-mode .text-bubble:hover, body.dark-mode .project-card:hover, body.dark-mode .certificate-card:hover, body.dark-mode .contact-widget:hover, body.dark-mode .social-dot:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
}

body.dark-mode .certificate-card a,
body.dark-mode .project-card a {
    background: radial-gradient(ellipse at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 50%, rgba(20, 20, 20, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
    transition: background var(--transition), border var(--transition), color var(--transition);
}

body.dark-mode .certificate-card a:hover,
body.dark-mode .project-card a:hover {
    background: radial-gradient(ellipse at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 50%, rgba(30, 25, 25, 0.2) 100%);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.5);
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: #ff6b6b;
}

body.dark-mode .section-title { text-shadow: 0 0 30px rgba(220, 20, 60, 0.3); }

body.dark-mode .theme-toggle,
body.dark-mode .lang-toggle,
body.dark-mode .menu-toggle,
body.dark-mode .currency-toggle {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 50%, rgba(20, 20, 20, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .theme-toggle i,
body.dark-mode .lang-toggle i,
body.dark-mode .currency-toggle i,
body.dark-mode .currency-symbol { color: #ff6b6b; }
body.dark-mode .menu-toggle span { background: #ff6b6b; }

body.dark-mode .theme-toggle:hover,
body.dark-mode .lang-toggle:hover,
body.dark-mode .menu-toggle:hover,
body.dark-mode .currency-toggle:hover {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 50%, rgba(30, 25, 25, 0.2) 100%);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.6), 0 0 20px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 16px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.06) 0%, rgba(139, 115, 85, 0.03) 50%, transparent 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.navbar:hover::before {
    opacity: 1;
}

.navbar:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.15);
}

.nav-container { display: flex; gap: 40px; align-items: center; }

.nav-link {
    font-size: 18px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-hover);
    transform: translateY(-1px);
}

.theme-toggle,
.lang-toggle,
.currency-toggle {
    position: fixed;
    top: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: radial-gradient(circle at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.theme-toggle::before,
.lang-toggle::before,
.currency-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.12) 0%, rgba(139, 115, 85, 0.06) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-toggle:hover::before,
.lang-toggle:hover::before,
.currency-toggle:hover::before {
    opacity: 1;
}

.theme-toggle { right: 40px; }
.lang-toggle { left: 40px; }
.currency-toggle { left: 110px; }

.theme-toggle i,
.lang-toggle i {
    font-size: 18px;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.currency-toggle i {
    font-size: 18px;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover,
.lang-toggle:hover,
.currency-toggle:hover {
    background: radial-gradient(circle at center, var(--grad-light-hover));
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

.theme-toggle:hover i,
.lang-toggle:hover i,
.currency-toggle:hover i,
.currency-toggle:hover .currency-symbol {
    color: var(--color-text-hover);
    transform: rotate(15deg) scale(1.1);
}

.menu-toggle {
    position: fixed;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    border: none;
    background: radial-gradient(circle at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.12) 0%, rgba(139, 115, 85, 0.06) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-toggle:hover::before {
    opacity: 1;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: radial-gradient(circle at center, var(--grad-light-hover));
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

.menu-toggle:hover span {
    background: var(--color-text-hover);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.portfolio { max-width: 900px; margin: 0 auto; padding: 120px 40px 160px; }

.mini-summary {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 35px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.18) 50%, rgba(180, 175, 165, 0.04) 100%);
    backdrop-filter: blur(18px);
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 220px;
}

.mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mini-card:hover::before {
    opacity: 1;
}

.mini-card:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.12);
}

.mini-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.5) 0%, rgba(180, 175, 165, 0.25) 50%, rgba(180, 175, 165, 0.08) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mini-icon i {
    font-size: 22px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.mini-card:hover .mini-icon {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.6) 0%, rgba(160, 150, 135, 0.35) 50%, rgba(150, 140, 125, 0.12) 100%);
}

.mini-card:hover .mini-icon i {
    color: var(--color-text-hover);
}

.mini-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.about-section {
    padding: 100px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.intro-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    width: 100%;
    max-width: 900px;
}

.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.name-widget {
    padding: 40px 60px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 50%, rgba(180, 175, 165, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    position: relative;
}

.name-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 60px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.name-widget:hover::before {
    opacity: 1;
}

.photo-widget {
    width: 220px;
    min-width: 220px;
    align-self: stretch;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 50%, rgba(180, 175, 165, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    padding: 12px;
    position: relative;
}

.photo-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.photo-widget:hover::before {
    opacity: 1;
}

.photo-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.photo-widget:hover,
.name-widget:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.12);
    transform: translateY(-2px);
}

.photo-widget:hover img {
    transform: scale(1.02);
}

.name-widget h1 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    padding-left: 20px;
}

.text-bubble {
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.18) 50%, rgba(180, 175, 165, 0.04) 100%);
    backdrop-filter: blur(18px);
    border-radius: 40px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    position: relative;
}

.text-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.text-bubble:hover::before {
    opacity: 1;
}

.text-bubble:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
    transform: translateY(-2px);
}

.text-bubble p {
    font-size: 22px;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 1px;
}

.work-section {
    padding: 100px 0 40px;
    scroll-margin-top: 120px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
}

.project-card a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px 24px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.35) 0%, rgba(180, 175, 165, 0.15) 50%, rgba(180, 175, 165, 0.03) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    align-self: flex-start;
    position: relative;
}

.project-card a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.1) 0%, rgba(139, 115, 85, 0.05) 50%, transparent 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card a:hover::before {
    opacity: 1;
}

.project-card a:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
    color: var(--color-text-hover);
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--color-text-hover);
}

.project-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.skills-section {
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.tools-section {
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.certificates-section {
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    width: 100%;
}

.certificate-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 50px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.certificate-card:hover::before {
    opacity: 1;
}

.certificate-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
}

.certificate-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    transition: color 0.3s ease;
}

.certificate-card:hover .certificate-name {
    color: var(--color-text-hover);
}

.certificate-date {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.8;
}

.certificate-card a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px 24px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.35) 0%, rgba(180, 175, 165, 0.15) 50%, rgba(180, 175, 165, 0.03) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    position: relative;
}

.certificate-card a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.1) 0%, rgba(139, 115, 85, 0.05) 50%, transparent 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-card a:hover::before {
    opacity: 1;
}

.certificate-card a:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
    color: var(--color-text-hover);
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 100px 0 60px;
    scroll-margin-top: 120px;
}

.contact-widget {
    padding: 30px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(18px);
    border-radius: 40px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.contact-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-widget:hover::before {
    opacity: 1;
}

.contact-widget:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.12);
    transform: translateY(-2px);
}

.contact-link {
    font-size: 24px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-text-hover);
}

.social-dots { display: flex; gap: 24px; }

.social-dot {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.18) 50%, rgba(180, 175, 165, 0.04) 100%);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    transition: all 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.social-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.12) 0%, rgba(139, 115, 85, 0.06) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-dot:hover::before {
    opacity: 1;
}

.social-dot i {
    font-size: 20px;
    color: var(--color-text);
}

.social-dot:hover {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.social-dot i {
    font-size: 20px;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-dot:hover i {
    color: var(--color-text-hover);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .theme-toggle, .lang-toggle, .currency-toggle { top: 25px; width: 48px; height: 48px; }
    .theme-toggle { right: 30px; }
    .lang-toggle { left: 30px; }
    .currency-toggle { left: 90px; }
    .theme-toggle i, .lang-toggle i { font-size: 17px; }
    .currency-symbol { font-size: 18px; }
    .portfolio { padding: 100px 30px 130px; }

    .intro-layout { gap: 40px; }
    .name-widget h1 { font-size: 46px; }
    .text-bubble p { font-size: 20px; }
    .project-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
    .certificates-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; top: 15px; left: 20px; width: 44px; height: 44px; }
    .menu-toggle span { width: 20px; }
    .lang-toggle { top: 15px; left: 70px; width: 44px; height: 44px; }
    .lang-toggle i { font-size: 16px; }
    .currency-toggle { top: 15px; left: 120px; width: 44px; height: 44px; }
    .currency-symbol { font-size: 17px; }
    .theme-toggle { top: 15px; right: 20px; width: 44px; height: 44px; }
    .theme-toggle i { font-size: 16px; }
    .navbar {
        top: 75px; left: 20px; transform: translateX(-120%);
        min-width: 200px; padding: 30px 35px; border-radius: 30px;
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    .navbar.active { transform: translateX(0); opacity: 1; }
    body.dark-mode .navbar { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
    .nav-container { flex-direction: column; gap: 20px; align-items: flex-start; }
    .nav-link { font-size: 18px; width: 100%; padding: 8px 0; transition: color 0.3s ease, transform 0.3s ease; }
    .nav-link:hover { transform: translateX(5px); }
    .portfolio { padding: 100px 24px 120px; }

    .mini-summary { gap: 20px; }
    .mini-card { padding: 20px 28px; min-width: 200px; }
    .mini-icon { width: 45px; height: 45px; }
    .mini-icon i { font-size: 20px; }
    .mini-value { font-size: 22px; }

    .intro-section { padding: 40px 0; }
    .about-section { padding: 80px 0 40px; }
    .intro-layout { gap: 25px; }
    .intro-content { gap: 25px; }
    .name-widget { padding: 20px 30px; align-self: stretch; }
    .name-widget h1 { font-size: 32px; }
    .photo-widget { width: 140px; min-width: 140px; min-height: 280px; padding: 8px; }
    .subtitle { padding-left: 10px; font-size: 17px; }
    .text-bubble { padding: 30px 25px; }
    .text-bubble p { font-size: 17px; line-height: 1.6; }
    .section-title { font-size: 36px; margin-bottom: 50px; }
    .work-section, .skills-section, .tools-section, .certificates-section, .contact-section { padding: 80px 0 40px; }
    .project-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-card { padding: 35px 30px; }
    .project-title { font-size: 19px; }
    .project-desc { font-size: 16px; }

    .certificates-grid { grid-template-columns: 1fr; gap: 30px; }
    .certificate-card { padding: 30px 35px; }
    .certificate-name { font-size: 18px; }
    .contact-widget { padding: 25px 40px; }
    .contact-link { font-size: 20px; }
    .social-dot { width: 45px; height: 45px; }
    .social-dot i { font-size: 18px; }
}

@media (max-width: 480px) {
    .menu-toggle { top: 10px; left: 12px; width: 40px; height: 40px; gap: 4px; }
    .menu-toggle span { width: 18px; }
    .lang-toggle { top: 10px; left: 62px; width: 40px; height: 40px; }
    .lang-toggle i { font-size: 14px; }
    .currency-toggle { top: 10px; left: 108px; width: 40px; height: 40px; }
    .currency-symbol { font-size: 15px; }
    .theme-toggle { top: 10px; right: 12px; width: 40px; height: 40px; }
    .theme-toggle i { font-size: 14px; }
    .navbar { top: 65px; left: 12px; padding: 25px 30px; border-radius: 25px; }
    .nav-container { gap: 10px; }
    .nav-link { font-size: 12px; }
    .portfolio { padding: 90px 16px 110px; }

    .mini-summary { gap: 15px; flex-direction: column; }
    .mini-card { padding: 18px 25px; min-width: auto; width: 100%; }
    .mini-icon { width: 42px; height: 42px; }
    .mini-icon i { font-size: 18px; }
    .mini-label { font-size: 13px; }
    .mini-value { font-size: 20px; }

    .intro-section { padding: 30px 0; }
    .about-section { padding: 60px 0 30px; }
    .intro-layout { gap: 20px; }
    .intro-content { gap: 20px; }
    .name-widget { padding: 18px 25px; border-radius: 40px; }
    .name-widget h1 { font-size: 26px; }
    .photo-widget { width: 120px; min-width: 120px; min-height: 240px; padding: 8px; border-radius: 25px; }
    .photo-widget img { border-radius: 18px; }
    .subtitle { font-size: 15px; padding-left: 8px; }
    .text-bubble { padding: 22px 18px; border-radius: 30px; }
    .text-bubble p { font-size: 15px; line-height: 1.5; }
    .section-title { font-size: 30px; margin-bottom: 40px; }
    .work-section, .skills-section, .tools-section, .certificates-section, .contact-section { padding: 60px 0 30px; }
    .project-grid { gap: 25px; }
    .project-card { padding: 25px 20px; border-radius: 25px; }
    .project-title { font-size: 17px; }
    .project-desc { font-size: 15px; line-height: 1.5; }

    .certificates-grid { gap: 25px; }
    .certificate-card { padding: 25px; border-radius: 25px; }
    .certificate-name { font-size: 17px; }
    .certificate-date { font-size: 14px; }
    .certificate-card a { font-size: 14px; padding: 10px 20px; border-radius: 18px; }
    .contact-widget { padding: 20px 30px; border-radius: 35px; }
    .contact-link { font-size: 17px; word-break: break-all; }
    .social-dots { gap: 20px; }
    .social-dot { width: 42px; height: 42px; }
    .social-dot i { font-size: 16px; }
}

@media (max-width: 360px) {
    .menu-toggle { top: 8px; left: 10px; width: 36px; height: 36px; gap: 3px; }
    .menu-toggle span { width: 16px; }
    .lang-toggle { top: 8px; left: 52px; width: 36px; height: 36px; }
    .lang-toggle i { font-size: 13px; }
    .currency-toggle { top: 8px; left: 94px; width: 36px; height: 36px; }
    .currency-symbol { font-size: 14px; }
    .theme-toggle { top: 8px; right: 10px; width: 36px; height: 36px; }
    .theme-toggle i { font-size: 13px; }
    .navbar { top: 58px; left: 10px; padding: 20px 25px; border-radius: 20px; }
    .nav-container { gap: 16px; }
    .nav-link { font-size: 11px; }
    .portfolio { padding: 85px 12px 100px; }

    .intro-layout { gap: 15px; }
    .intro-content { gap: 15px; }
    .name-widget { padding: 15px 20px; }
    .name-widget h1 { font-size: 22px; }
    .photo-widget { width: 100px; min-width: 100px; min-height: 200px; padding: 6px; }
    .subtitle { font-size: 14px; padding-left: 6px; }
    .text-bubble { padding: 18px 14px; }
    .text-bubble p { font-size: 14px; }
    .section-title { font-size: 26px; }
    .project-card { padding: 20px 16px; }

    .certificate-card { padding: 20px; }
    .contact-link { font-size: 15px; }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background:
        radial-gradient(ellipse at center, var(--grad-light)),
        var(--color-bg);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(139, 115, 85, 0.2);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.modal-close {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
    font-size: 22px;
    position: relative;
}

.modal-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-close:hover::before {
    opacity: 1;
}

.modal-close:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    color: var(--color-text-hover);
}

.modal-body {
    padding: 40px 50px 50px;
    max-height: calc(85vh - 130px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(139, 115, 85, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.5);
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.currency-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 25px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.35) 0%, rgba(180, 175, 165, 0.15) 100%);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.currency-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.currency-option:hover::before {
    opacity: 1;
}

.currency-option:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.45) 0%, rgba(160, 150, 135, 0.25) 100%);
    border-color: rgba(139, 115, 85, 0.25);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.12);
}

.currency-option.active {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 100%);
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.2);
}

.currency-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    font-size: 13px;
}

.currency-symbol-large {
    font-size: 40px;
    font-weight: 600;
    color: var(--color-text);
}

.currency-code {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.currency-name {
    font-size: 15px;
    color: var(--color-text);
    opacity: 0.8;
    text-align: center;
}

body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .modal-header {
    border-bottom-color: rgba(139, 115, 85, 0.2);
}

.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.stat-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 35px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    flex: 1 1 auto;
    min-width: 280px;
}

.stat-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-widget:hover::before {
    opacity: 1;
}

.stat-widget:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.2) 100%);
    border-radius: 50%;
    font-size: 24px;
    color: var(--color-text);
    flex-shrink: 0;
}

.stat-content {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    line-height: 1.2;
}

.transaction-form-widget {
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    margin-bottom: 50px;
    transition: background var(--transition), box-shadow 0.3s ease;
    position: relative;
}

.transaction-form-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.transaction-form-widget:hover::before {
    opacity: 1;
}

.transaction-form-widget h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    font-size: 16px;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.3) 0%, rgba(180, 175, 165, 0.15) 100%);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.4) 0%, rgba(160, 150, 135, 0.2) 100%);
}

.btn-primary {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
}

.btn-standard {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-standard:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
}

.btn-standard.btn-danger {
    color: var(--color-text);
}

.btn-standard.btn-danger:hover {
    color: var(--color-text-hover);
}

.btn-delete {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-delete:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    color: var(--color-text-hover);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transaction-card {
    position: relative;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.transaction-info {
    flex: 1;
}

.transaction-meta {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 8px;
}

.transaction-amount {
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-text);
}

.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-card {
    padding: 30px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.category-amount {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
}

.category-bar {
    width: 100%;
    height: 12px;
    background: rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-text-hover) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.category-percentage {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    text-align: right;
}

.setting-widget {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 35px 40px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.setting-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.currency-select {
    padding: 18px 22px;
    font-size: 17px;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.3) 0%, rgba(180, 175, 165, 0.15) 100%);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.4) 0%, rgba(160, 150, 135, 0.2) 100%);
}

.currency-select:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.35) 0%, rgba(160, 150, 135, 0.18) 100%);
    border-color: rgba(139, 115, 85, 0.3);
}

.currency-select option {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 10px;
}

.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    width: 100%;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-group-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    padding-left: 10px;
}

.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-widget button {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-widget button:hover {
    color: var(--color-text-hover);
}

.contact-widget button.danger {
    color: #e74c3c;
}

.contact-widget button.danger:hover {
    color: #c0392b;
}

.import-label {
    display: block;
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.import-label:hover {
    color: var(--color-text-hover);
}

.action-widget {
    padding: 0;
}

.action-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.action-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.action-button:hover::before {
    opacity: 1;
}

.action-button:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    color: var(--color-text-hover);
}

.action-button i {
    font-size: 20px;
}

.export-button:hover {
    color: var(--color-text-hover);
}

.import-button:hover {
    color: var(--color-text-hover);
}

.danger-button {
    color: var(--color-text);
}

.danger-button:hover {
    color: var(--color-text-hover);
}

.currency-button {
    justify-content: flex-start;
    text-align: left;
}

.currency-button-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.currency-button-label {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

.currency-button-value {
    font-size: 17px;
    font-weight: 600;
}

body.dark-mode .action-button {
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
}

body.dark-mode .action-button:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    color: #ff6b6b;
}

body.dark-mode .danger-button {
    color: var(--color-text);
}

body.dark-mode .danger-button:hover {
    color: #ff6b6b;
}

body.dark-mode .btn-delete {
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    color: var(--color-text);
}

body.dark-mode .btn-delete:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    color: #ff6b6b;
}

.empty-state {
    text-align: center;
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.6;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .overview-grid {
        flex-direction: column;
        gap: 20px;
    }

    .stat-widget {
        padding: 25px 30px;
        gap: 15px;
        min-width: 100%;
        flex: 1 1 100%;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-value {
        font-size: 26px;
    }

    .transaction-form-widget {
        padding: 30px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .transaction-header {
        flex-direction: column;
        gap: 10px;
    }

    .transaction-amount {
        font-size: 20px;
    }

    .category-card {
        padding: 20px 25px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .settings-actions {
        gap: 15px;
    }

    .action-button {
        padding: 16px 30px;
        font-size: 17px;
    }

    .action-button i {
        font-size: 18px;
    }

    .currency-button-label {
        font-size: 13px;
    }

    .currency-button-value {
        font-size: 16px;
    }

    .settings-group-title {
        font-size: 20px;
    }

    .setting-widget {
        padding: 30px 35px;
    }

    .currency-select {
        padding: 16px 20px;
        font-size: 16px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 35px;
    }

    .modal-header {
        padding: 30px 35px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .modal-body {
        padding: 30px 35px 40px;
        max-height: calc(90vh - 110px);
    }

    .currency-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 18px;
    }

    .currency-option {
        padding: 25px 20px;
        gap: 8px;
    }

    .currency-symbol-large {
        font-size: 34px;
    }

    .currency-code {
        font-size: 18px;
    }

    .currency-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stat-widget {
        padding: 20px 25px;
        gap: 12px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .stat-label {
        font-size: 13px;
    }

    .stat-value {
        font-size: 22px;
    }

    .transaction-form-widget {
        padding: 25px 20px;
    }

    .transaction-form-widget h3 {
        font-size: 20px;
    }

    .category-name,
    .category-amount {
        font-size: 18px;
    }

    .settings-container {
        gap: 40px;
    }

    .settings-group {
        gap: 20px;
    }

    .settings-group-title {
        font-size: 18px;
    }

    .settings-actions {
        gap: 15px;
    }

    .action-button {
        padding: 16px 25px;
        font-size: 16px;
    }

    .action-button i {
        font-size: 17px;
    }

    .currency-button-label {
        font-size: 12px;
    }

    .currency-button-value {
        font-size: 15px;
    }

    .setting-widget {
        padding: 25px 30px;
    }

    .currency-select {
        padding: 15px 18px;
        font-size: 15px;
    }

    .modal-content {
        border-radius: 30px;
    }

    .modal-header {
        padding: 25px 30px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-close {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .modal-body {
        padding: 25px 30px 30px;
    }

    .currency-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .currency-option {
        padding: 22px 18px;
        gap: 8px;
    }

    .currency-symbol-large {
        font-size: 30px;
    }

    .currency-code {
        font-size: 17px;
    }

    .currency-name {
        font-size: 13px;
    }
}

.budgets-list,
.goals-list,
.recurring-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.budget-card,
.goal-card,
.recurring-card {
    padding: 35px 40px;
    min-height: 280px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.budget-card::before,
.goal-card::before,
.recurring-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.budget-card:hover::before,
.goal-card:hover::before,
.recurring-card:hover::before {
    opacity: 1;
}

.budget-card:hover,
.goal-card:hover,
.recurring-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
    transform: translateY(-4px);
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.budget-category {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.budget-limit {
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.8;
}

.budget-progress {
    margin: 15px 0;
    flex: 1;
}

.budget-bar {
    width: 100%;
    height: 12px;
    background: rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.budget-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 115, 85, 0.6), rgba(139, 115, 85, 0.8));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.budget-bar-fill.warning {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.6), rgba(255, 165, 0, 0.8));
}

.budget-bar-fill.danger {
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.6), rgba(220, 20, 60, 0.8));
}

.budget-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.9;
}

.btn-delete-budget {
    margin-top: auto;
    padding: 10px 20px;
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.3), rgba(220, 20, 60, 0.15));
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-delete-budget:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.5), rgba(220, 20, 60, 0.25));
    transform: translateY(-2px);
}

.goal-card {

}

.goal-header {
    margin-bottom: 20px;
}

.goal-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.goal-target {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.goal-deadline {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
}

.goal-progress {
    margin: 20px 0;
    flex: 1;
}

.goal-progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.6), rgba(34, 139, 34, 0.8));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.goal-progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.goal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-update-goal,
.btn-delete-goal {
    flex: 1;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-update-goal {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.3), rgba(139, 115, 85, 0.15));
    border: 1px solid rgba(139, 115, 85, 0.3);
    color: var(--color-text);
}

.btn-update-goal:hover {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.5), rgba(139, 115, 85, 0.25));
    transform: translateY(-2px);
}

.btn-delete-goal {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.3), rgba(220, 20, 60, 0.15));
    border: 1px solid rgba(220, 20, 60, 0.3);
    color: var(--color-text);
}

.btn-delete-goal:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.5), rgba(220, 20, 60, 0.25));
    transform: translateY(-2px);
}

.recurring-card {

}

.recurring-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.recurring-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

.recurring-meta {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
}

.recurring-amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
}

.recurring-amount.income {
    color: rgba(34, 139, 34, 0.9);
}

.recurring-amount.expense {
    color: rgba(220, 20, 60, 0.9);
}

.recurring-frequency {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    font-size: 13px;
    margin-top: 10px;
    color: var(--color-text);
}

.btn-delete-recurring {
    margin-top: auto;
    padding: 10px 20px;
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.3), rgba(220, 20, 60, 0.15));
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-delete-recurring:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.5), rgba(220, 20, 60, 0.25));
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 12px 28px;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.25), rgba(139, 115, 85, 0.12));
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 20px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.4), rgba(139, 115, 85, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
}

.transaction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 115, 85, 0.2);
    border-radius: 10px;
    font-size: 12px;
    color: var(--color-text);
}

.transaction-notes {
    margin-top: 10px;
    padding: 12px;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.9;
    font-style: italic;
}

textarea {
    width: 100%;
    padding: 14px 18px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.25), rgba(180, 175, 165, 0.12));
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 15px;
    color: var(--color-text);
    font-size: 16px;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

textarea:focus {
    outline: none;
    border-color: rgba(139, 115, 85, 0.4);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.35), rgba(180, 175, 165, 0.18));
}

body.dark-mode textarea {
    background: radial-gradient(ellipse at center, rgba(40, 35, 35, 0.5), rgba(30, 25, 25, 0.3));
    border-color: rgba(220, 20, 60, 0.2);
}

body.dark-mode textarea:focus {
    border-color: rgba(220, 20, 60, 0.4);
    background: radial-gradient(ellipse at center, rgba(50, 40, 40, 0.6), rgba(40, 30, 30, 0.4));
}

body.dark-mode .budget-card,
body.dark-mode .goal-card,
body.dark-mode .recurring-card {
    background: radial-gradient(ellipse at center, var(--grad-light));
    border: 1px solid rgba(220, 20, 60, 0.15);
}

body.dark-mode .budget-card:hover,
body.dark-mode .goal-card:hover,
body.dark-mode .recurring-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
}

body.dark-mode .budget-bar {
    background: rgba(220, 20, 60, 0.15);
}

body.dark-mode .goal-progress-bar {
    background: rgba(220, 20, 60, 0.15);
}

body.dark-mode .btn-secondary {
    background: radial-gradient(ellipse at center, rgba(40, 35, 35, 0.5), rgba(30, 25, 25, 0.3));
    border-color: rgba(220, 20, 60, 0.3);
}

body.dark-mode .btn-secondary:hover {
    background: radial-gradient(ellipse at center, rgba(50, 40, 40, 0.6), rgba(40, 30, 30, 0.4));
}

body.dark-mode .tag {
    background: rgba(220, 20, 60, 0.2);
}

body.dark-mode .transaction-notes {
    background: rgba(220, 20, 60, 0.1);
}

body.dark-mode .recurring-frequency {
    background: rgba(220, 20, 60, 0.2);
}

.budget-amounts,
.goal-amounts {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.budget-amount-item,
.goal-amount-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.budget-label,
.goal-label {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-value,
.goal-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.budget-value.negative {
    color: rgba(220, 20, 60, 0.9);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.6), rgba(34, 139, 34, 0.8));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-fill.safe {
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.6), rgba(34, 139, 34, 0.8));
}

.progress-fill.warning {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.6), rgba(255, 165, 0, 0.8));
}

.progress-fill.over,
.progress-fill.danger {
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.6), rgba(220, 20, 60, 0.8));
}

.progress-fill.in-progress {
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.5), rgba(34, 139, 34, 0.7));
}

.progress-fill.near-complete {
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.7), rgba(34, 139, 34, 0.9));
}

.progress-fill.completed {
    background: linear-gradient(90deg, rgba(34, 139, 34, 0.8), rgba(34, 139, 34, 1));
}

.progress-text {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.8;
    text-align: center;
}

.btn-delete-small {
    padding: 8px 12px;
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.25), rgba(220, 20, 60, 0.12));
    border: none;
    border-radius: 12px;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.4), rgba(220, 20, 60, 0.2));
    transform: translateY(-2px);
    color: var(--color-text-hover);
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.goal-deadline {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.7;
}

.goal-deadline.overdue {
    color: rgba(220, 20, 60, 0.9);
    font-weight: 600;
}

.goal-deadline.today {
    color: rgba(255, 165, 0, 0.9);
    font-weight: 600;
}

.goal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-goal-update {
    flex: 1;
    padding: 10px 20px;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.3), rgba(139, 115, 85, 0.15));
    border: none;
    border-radius: 15px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-goal-update:hover {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.5), rgba(139, 115, 85, 0.25));
    transform: translateY(-2px);
    color: var(--color-text-hover);
}

.recurring-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.recurring-last {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.6;
    margin-top: 5px;
}

.recurring-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-generate {
    flex: 1;
    padding: 10px 20px;
    background: radial-gradient(ellipse at center, rgba(34, 139, 34, 0.3), rgba(34, 139, 34, 0.15));
    border: none;
    border-radius: 15px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-generate:hover {
    background: radial-gradient(ellipse at center, rgba(34, 139, 34, 0.5), rgba(34, 139, 34, 0.25));
    transform: translateY(-2px);
    color: var(--color-text-hover);
}

.transaction-tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.8;
}

.transaction-notes {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.85;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.transaction-notes i {
    margin-top: 2px;
    opacity: 0.6;
}

body.dark-mode .progress-bar {
    background: rgba(220, 20, 60, 0.15);
}

body.dark-mode .btn-delete-small {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.25), rgba(220, 20, 60, 0.12));
}

body.dark-mode .btn-delete-small:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.4), rgba(220, 20, 60, 0.2));
    color: #ff6b6b;
}

body.dark-mode .btn-goal-update {
    background: radial-gradient(ellipse at center, rgba(40, 35, 35, 0.5), rgba(30, 25, 25, 0.3));
}

body.dark-mode .btn-goal-update:hover {
    background: radial-gradient(ellipse at center, rgba(50, 40, 40, 0.6), rgba(40, 30, 30, 0.4));
    color: #ff6b6b;
}

body.dark-mode .btn-generate {
    background: radial-gradient(ellipse at center, rgba(40, 35, 35, 0.5), rgba(30, 25, 25, 0.3));
}

body.dark-mode .btn-generate:hover {
    background: radial-gradient(ellipse at center, rgba(50, 40, 40, 0.6), rgba(40, 30, 30, 0.4));
    color: #ff6b6b;
}

body.dark-mode .transaction-tags {
    color: #e8e8e8;
}

body.dark-mode .transaction-notes {
    background: rgba(220, 20, 60, 0.1);
}

@media (max-width: 768px) {
    .budgets-list,
    .goals-list,
    .recurring-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .budget-card,
    .goal-card,
    .recurring-card {
        padding: 25px 30px;
        min-height: auto;
    }

    .budget-amounts,
    .goal-amounts {
        flex-direction: column;
        gap: 12px;
    }

    .budget-category,
    .goal-name,
    .recurring-title {
        font-size: 18px;
    }

    .budget-value,
    .goal-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .budget-card,
    .goal-card,
    .recurring-card {
        padding: 20px 25px;
    }

    .budget-category,
    .goal-name,
    .recurring-title {
        font-size: 17px;
    }

    .budget-value,
    .goal-value {
        font-size: 15px;
    }

    .goal-actions,
    .recurring-actions {
        flex-direction: column;
    }

    .btn-goal-update,
    .btn-generate,
    .btn-delete {
        width: 100%;
    }
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.stat-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.stat-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-widget:hover::before {
    opacity: 1;
}

.stat-widget:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.5) 0%, rgba(180, 175, 165, 0.25) 50%, rgba(180, 175, 165, 0.08) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stat-icon i {
    font-size: 26px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.stat-widget:hover .stat-icon {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.6) 0%, rgba(160, 150, 135, 0.35) 50%, rgba(150, 140, 125, 0.12) 100%);
}

.stat-widget:hover .stat-icon i {
    color: var(--color-text-hover);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
}

.deck-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.deck-meta {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 8px;
}

.deck-description {
    font-size: 16px;
    color: var(--color-text);
    opacity: 0.8;
    margin-top: 12px;
    line-height: 1.5;
}

.deck-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-delete, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-primary {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.5) 0%, rgba(139, 115, 85, 0.3) 50%, rgba(139, 115, 85, 0.1) 100%);
    color: var(--color-text);
}

.btn-primary:hover {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.7) 0%, rgba(139, 115, 85, 0.5) 50%, rgba(139, 115, 85, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.btn-secondary {
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.35) 0%, rgba(180, 175, 165, 0.15) 50%, rgba(180, 175, 165, 0.03) 100%);
    color: var(--color-text);
}

.btn-secondary:hover:not(:disabled) {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
}

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

.btn-delete {
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.3) 0%, rgba(220, 53, 69, 0.15) 50%, rgba(220, 53, 69, 0.05) 100%);
    color: #dc3545;
}

.btn-delete:hover {
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.5) 0%, rgba(220, 53, 69, 0.3) 50%, rgba(220, 53, 69, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.btn-danger {
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.4) 0%, rgba(220, 53, 69, 0.2) 50%, rgba(220, 53, 69, 0.08) 100%);
    color: #dc3545;
}

.btn-danger:hover {
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.6) 0%, rgba(220, 53, 69, 0.4) 50%, rgba(220, 53, 69, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

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

.modal.active {
    display: flex;
}

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

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--color-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.3) 0%, rgba(180, 175, 165, 0.1) 50%, transparent 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close i {
    font-size: 20px;
    color: var(--color-text);
}

.modal-close:hover {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.25) 50%, rgba(150, 140, 125, 0.08) 100%);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
}

.transaction-form-widget {
    padding: 30px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(18px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.transaction-form-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.transaction-form-widget:hover::before {
    opacity: 1;
}

.transaction-form-widget:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.12);
}

.transaction-form-widget h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    background: rgba(180, 175, 165, 0.1);
    color: var(--color-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(139, 115, 85, 0.5);
    background: rgba(180, 175, 165, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-item {
    padding: 25px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.3) 0%, rgba(180, 175, 165, 0.12) 50%, rgba(180, 175, 165, 0.02) 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.card-item.mastered {
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.card-item:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.4) 0%, rgba(160, 150, 135, 0.2) 50%, rgba(150, 140, 125, 0.05) 100%);
    transform: translateY(-2px);
}

.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.card-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.5;
}

.card-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.card-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.8;
}

.card-mastered-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-toggle-mastered,
.btn-delete-small {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-toggle-mastered {
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.1) 50%, transparent 100%);
    color: #ffc107;
}

.btn-toggle-mastered:hover {
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.5) 0%, rgba(255, 193, 7, 0.25) 50%, rgba(255, 193, 7, 0.08) 100%);
    transform: scale(1.1);
}

.btn-delete-small {
    background: radial-gradient(circle at center, rgba(220, 53, 69, 0.3) 0%, rgba(220, 53, 69, 0.1) 50%, transparent 100%);
    color: #dc3545;
}

.btn-delete-small:hover {
    background: radial-gradient(circle at center, rgba(220, 53, 69, 0.5) 0%, rgba(220, 53, 69, 0.25) 50%, rgba(220, 53, 69, 0.08) 100%);
    transform: scale(1.1);
}

.study-select-deck {
    text-align: center;
    padding: 40px;
}

.study-select-deck p {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 30px;
}

#study-deck-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.study-deck-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.study-deck-button:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
}

.study-deck-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.study-deck-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.study-deck-meta {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
}

.study-deck-button i {
    font-size: 20px;
    color: var(--color-text);
    transition: transform 0.3s ease;
}

.study-deck-button:hover i {
    transform: translateX(5px);
}

.study-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(180, 175, 165, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 115, 85, 0.8) 0%, rgba(139, 115, 85, 0.6) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.flashcard {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto 30px;
    perspective: 1000px;
    cursor: pointer;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(139, 115, 85, 0.15);
}

.flashcard-back {
    transform: rotateY(180deg);
}

.flashcard-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flashcard-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    line-height: 1.6;
}

.flashcard-hint {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.5;
    font-style: italic;
}

.study-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.study-actions.visible {
    opacity: 1;
    pointer-events: all;
}

.btn-incorrect,
.btn-correct {
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-incorrect {
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.4) 0%, rgba(220, 53, 69, 0.2) 50%, rgba(220, 53, 69, 0.08) 100%);
    color: #dc3545;
}

.btn-incorrect:hover {
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.6) 0%, rgba(220, 53, 69, 0.4) 50%, rgba(220, 53, 69, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-correct {
    background: radial-gradient(ellipse at center, rgba(40, 167, 69, 0.4) 0%, rgba(40, 167, 69, 0.2) 50%, rgba(40, 167, 69, 0.08) 100%);
    color: #28a745;
}

.btn-correct:hover {
    background: radial-gradient(ellipse at center, rgba(40, 167, 69, 0.6) 0%, rgba(40, 167, 69, 0.4) 50%, rgba(40, 167, 69, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.study-complete {
    text-align: center;
    padding: 60px 40px;
}

.study-complete-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.1) 50%, transparent 100%);
    border-radius: 50%;
}

.study-complete-icon i {
    font-size: 50px;
    color: #ffc107;
}

.study-complete h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 15px;
}

.study-complete p {
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

.stat-card {
    padding: 30px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card-header i {
    font-size: 24px;
    color: var(--color-text);
}

.stat-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.stat-card-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.stat-card-label {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
}

.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .stat-widget {
        padding: 25px 30px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 25px;
    }

    .modal-body {
        padding: 25px;
    }

    .card-content {
        grid-template-columns: 1fr;
    }

    .flashcard {
        height: 350px;
    }

    .flashcard-text {
        font-size: 20px;
    }

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

    .btn-incorrect,
    .btn-correct {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .deck-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }

    .flashcard {
        height: 300px;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 25px;
    }

    .flashcard-text {
        font-size: 18px;
    }
}

.btn-primary,
.btn-secondary,
.btn-standard,
.btn-delete,
.btn-danger,
.btn-toggle-mastered,
.btn-delete-small,
.btn-incorrect,
.btn-correct,
.action-button,
.quick-action-btn,
.import-label,
form button[type="submit"],
form button[type="button"] {
    padding: 16px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--color-text) !important;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    height: auto;
    text-align: center;
    box-shadow: none;
    transform: none !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-standard:hover,
.btn-delete:hover,
.btn-danger:hover,
.btn-toggle-mastered:hover,
.btn-delete-small:hover,
.btn-incorrect:hover,
.btn-correct:hover,
.action-button:hover,
.quick-action-btn:hover,
.import-label:hover,
form button[type="submit"]:hover,
form button[type="button"]:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%) !important;
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15) !important;
    color: var(--color-text-hover) !important;
}

body.dark-mode .btn-primary:hover,
body.dark-mode .btn-secondary:hover,
body.dark-mode .btn-standard:hover,
body.dark-mode .btn-delete:hover,
body.dark-mode .btn-danger:hover,
body.dark-mode .btn-toggle-mastered:hover,
body.dark-mode .btn-delete-small:hover,
body.dark-mode .btn-incorrect:hover,
body.dark-mode .btn-correct:hover,
body.dark-mode .action-button:hover,
body.dark-mode .quick-action-btn:hover,
body.dark-mode .import-label:hover,
body.dark-mode form button[type="submit"]:hover,
body.dark-mode form button[type="button"]:hover {
    color: #ff6b6b !important;
}

.btn-primary i,
.btn-secondary i,
.btn-standard i,
.btn-delete i,
.btn-danger i,
.btn-toggle-mastered i,
.btn-delete-small i,
.btn-incorrect i,
.btn-correct i,
.action-button i,
.quick-action-btn i {
    color: inherit !important;
    font-size: 18px;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-standard:disabled,
.btn-delete:disabled,
.btn-danger:disabled,
button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.hero-advanced {
    position: relative;
    overflow: hidden;
    padding: 80px 70px;
    max-width: 820px;
}

.hero-advanced .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

@keyframes taglineFadeIn {
    to { opacity: 0.9; transform: translateY(0); }
}

@keyframes heroIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .hero-advanced {
        padding: 56px 36px;
    }

}

@media (max-width: 480px) {
    .hero-advanced {
        padding: 44px 22px;
    }

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.today-date {
    text-align: center;
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.75;
    margin: -40px 0 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.today-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.today-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
    text-align: left;
    color: var(--color-text);
    font-family: inherit;
    width: 100%;
}

.today-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.today-card:hover::before { opacity: 1; }

.today-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
    transform: translateY(-2px);
}

.today-card.checked {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.35) 0%, rgba(139, 115, 85, 0.18) 50%, rgba(139, 115, 85, 0.05) 100%);
}

.today-checkbox {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.today-checkbox i {
    color: var(--color-text);
    font-size: 16px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.today-card.checked .today-checkbox {
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.65) 0%, rgba(139, 115, 85, 0.4) 100%);
}

.today-card.checked .today-checkbox i {
    opacity: 1;
    transform: scale(1);
    color: var(--color-bg);
}

.today-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.today-icon i {
    color: var(--color-text);
    font-size: 18px;
}

.today-info {
    flex: 1;
    min-width: 0;
}

.today-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.today-meta {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.today-streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.18) 100%);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.today-streak i {
    font-size: 12px;
    opacity: 0.8;
}

.habits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.habit-card {
    padding: 32px 36px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.habit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.habit-card:hover::before { opacity: 1; }

.habit-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
}

.habit-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.habit-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.habit-icon-wrap i {
    color: var(--color-text);
    font-size: 20px;
}

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

.habit-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.habit-meta {
    font-size: 12px;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.habit-notes {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0;
    padding: 12px 16px;
    background: rgba(139, 115, 85, 0.08);
    border-radius: 14px;
    font-style: italic;
}

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

.habit-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    background: rgba(139, 115, 85, 0.06);
    border-radius: 14px;
}

.habit-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.habit-stat-label {
    font-size: 11px;
    color: var(--color-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.habit-week {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.habit-week-day {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(139, 115, 85, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
}

.habit-week-day.scheduled { opacity: 1; }

.habit-week-day.checked {
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.7) 0%, rgba(139, 115, 85, 0.5) 100%);
    color: var(--color-bg);
    opacity: 1;
}

.habit-week-day.today {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.habit-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.habit-actions button {
    flex: 1;
}

.heatmap-widget {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.heatmap-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.heatmap-container {
    overflow-x: auto;
    padding: 10px 4px;
    -webkit-overflow-scrolling: touch;
}

.heatmap-grid-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100%;
}

.heatmap-months {
    display: grid;
    grid-template-columns: 32px repeat(53, 14px);
    gap: 3px;
    font-size: 11px;
    color: var(--color-text);
    opacity: 0.7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.heatmap-month {
    grid-column: span var(--span, 4);
    text-align: left;
    padding-left: 2px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: 32px repeat(53, 14px);
    grid-template-rows: repeat(7, 14px);
    grid-auto-flow: column;
    gap: 3px;
}

.heatmap-day-label {
    grid-column: 1;
    font-size: 10px;
    color: var(--color-text);
    opacity: 0.6;
    text-align: right;
    padding-right: 6px;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.heatmap-day-label.empty { visibility: hidden; }

.heatmap-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(139, 115, 85, 0.08);
    transition: transform 0.15s ease, background 0.15s ease;
    cursor: default;
    position: relative;
}

.heatmap-cell.future { opacity: 0.3; }
.heatmap-cell.empty-slot { visibility: hidden; }

.heatmap-cell[data-level="0"] { background: rgba(139, 115, 85, 0.08); }
.heatmap-cell[data-level="1"] { background: rgba(139, 115, 85, 0.28); }
.heatmap-cell[data-level="2"] { background: rgba(139, 115, 85, 0.5); }
.heatmap-cell[data-level="3"] { background: rgba(139, 115, 85, 0.7); }
.heatmap-cell[data-level="4"] { background: rgba(139, 115, 85, 0.9); }

.heatmap-cell:hover {
    transform: scale(1.4);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.heatmap-legend-label {
    font-size: 12px;
    color: var(--color-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.heatmap-legend-cell {
    cursor: default;
}

.heatmap-legend-cell:hover { transform: none; box-shadow: none; }

.heatmap-tooltip {
    position: fixed;
    z-index: 1000;
    padding: 8px 14px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.95) 0%, rgba(180, 175, 165, 0.85) 100%);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    font-size: 13px;
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.25);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.heatmap-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .today-card.checked {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.32) 0%, rgba(178, 34, 34, 0.18) 50%, rgba(120, 15, 15, 0.05) 100%);
}

body.dark-mode .today-card.checked .today-checkbox {
    background: radial-gradient(circle at center, rgba(220, 20, 60, 0.7) 0%, rgba(178, 34, 34, 0.45) 100%);
}

body.dark-mode .today-card.checked .today-checkbox i {
    color: #fff;
}

body.dark-mode .habit-week-day.checked {
    background: radial-gradient(circle at center, rgba(220, 20, 60, 0.65) 0%, rgba(178, 34, 34, 0.45) 100%);
    color: #fff;
}

body.dark-mode .habit-week-day.today {
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.7);
}

body.dark-mode .heatmap-cell[data-level="0"] { background: rgba(220, 20, 60, 0.08); }
body.dark-mode .heatmap-cell[data-level="1"] { background: rgba(220, 20, 60, 0.3); }
body.dark-mode .heatmap-cell[data-level="2"] { background: rgba(220, 20, 60, 0.5); }
body.dark-mode .heatmap-cell[data-level="3"] { background: rgba(220, 20, 60, 0.72); }
body.dark-mode .heatmap-cell[data-level="4"] { background: rgba(220, 20, 60, 0.92); }

body.dark-mode .habit-notes {
    background: rgba(220, 20, 60, 0.08);
}

body.dark-mode .habit-stat-item,
body.dark-mode .habit-week-day {
    background: rgba(220, 20, 60, 0.08);
}

body.dark-mode .heatmap-tooltip {
    background: radial-gradient(ellipse at center, rgba(40, 35, 35, 0.95) 0%, rgba(30, 25, 25, 0.85) 100%);
    color: #e8e8e8;
}

@media (max-width: 768px) {
    .today-list { grid-template-columns: 1fr; }
    .habits-list { grid-template-columns: 1fr; }
    .habit-card { padding: 24px 26px; }
    .heatmap-controls { grid-template-columns: 1fr; }
    .heatmap-months,
    .heatmap-grid { grid-template-columns: 28px repeat(53, 12px); }
    .heatmap-grid { grid-template-rows: repeat(7, 12px); }
    .heatmap-cell { width: 12px; height: 12px; }
    .today-date { font-size: 16px; margin: -30px 0 40px; }
}

@media (max-width: 480px) {
    .today-card { padding: 22px 24px; gap: 14px; }
    .today-name { font-size: 16px; }
    .habit-card { padding: 22px 22px; }
    .habit-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .habit-stat-value { font-size: 18px; }
    .habit-actions { flex-direction: column; }
    .heatmap-grid,
    .heatmap-months { grid-template-columns: 24px repeat(53, 10px); }
    .heatmap-grid { grid-template-rows: repeat(7, 10px); }
    .heatmap-cell { width: 10px; height: 10px; }
}

.home-toggle {
    position: fixed;
    top: 30px;
    right: 110px;
    width: 50px;
    height: 50px;
    border: none;
    background: radial-gradient(circle at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    text-decoration: none;
}

.home-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.12) 0%, rgba(139, 115, 85, 0.06) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.home-toggle:hover::before { opacity: 1; }

.home-toggle i {
    font-size: 18px;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.home-toggle:hover {
    background: radial-gradient(circle at center, var(--grad-light-hover));
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

.home-toggle:hover i {
    color: var(--color-text-hover);
    transform: scale(1.1);
}

body.dark-mode .home-toggle {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 50%, rgba(20, 20, 20, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .home-toggle i { color: #ff6b6b; }

body.dark-mode .home-toggle:hover {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 50%, rgba(30, 25, 25, 0.2) 100%);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.6), 0 0 20px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(220, 20, 60, 0.5);
}

@media (max-width: 1024px) {
    .home-toggle { top: 25px; right: 90px; width: 48px; height: 48px; }
    .home-toggle i { font-size: 17px; }
}

@media (max-width: 768px) {
    .home-toggle { top: 15px; right: 75px; width: 44px; height: 44px; }
    .home-toggle i { font-size: 16px; }
}

@media (max-width: 480px) {
    .home-toggle { top: 10px; right: 62px; width: 40px; height: 40px; }
    .home-toggle i { font-size: 14px; }
}

@media (max-width: 360px) {
    .home-toggle { top: 8px; right: 52px; width: 36px; height: 36px; }
    .home-toggle i { font-size: 13px; }
}

.site-footer {
    position: fixed;
    bottom: 30px;
    left: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.footer-container {
    width: 100%;
    padding: 18px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    transition: background var(--transition), box-shadow 0.3s ease;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.footer-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.06) 0%, rgba(139, 115, 85, 0.03) 50%, transparent 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.footer-container:hover::before { opacity: 1; }

.footer-container:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.15);
}

.footer-year {
    font-variant-numeric: tabular-nums;
    justify-self: start;
}

.footer-brand {
    letter-spacing: 1px;
    font-weight: 600;
    justify-self: center;
}

.footer-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    justify-self: end;
}

.footer-link:hover {
    color: var(--color-text-hover);
}

body.dark-mode .footer-container {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(30, 30, 30, 0.5) 100%),
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, rgba(60, 20, 20, 0.1) 50%, rgba(30, 30, 30, 0.05) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .footer-container:hover {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.6) 0%, rgba(25, 25, 25, 0.4) 50%, rgba(35, 35, 35, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(178, 34, 34, 0.2) 0%, rgba(80, 25, 25, 0.15) 50%, rgba(40, 40, 40, 0.08) 100%);
}

body.dark-mode .footer-link:hover { color: #ff6b6b; }

@media (max-width: 1024px) {
    .site-footer { bottom: 25px; left: 30px; right: 30px; }
    .footer-container { padding: 16px 32px; }
}

@media (max-width: 768px) {
    .site-footer { bottom: 20px; left: 20px; right: 20px; }
    .footer-container { padding: 14px 22px; border-radius: 40px; font-size: 13px; gap: 12px; }
}

@media (max-width: 600px) {
    .footer-container { font-size: 12px; padding: 12px 18px; }
    .footer-brand { letter-spacing: 0.5px; }
}

@media (max-width: 480px) {
    .site-footer { bottom: 12px; left: 12px; right: 12px; }
    .footer-container { padding: 10px 14px; border-radius: 24px; font-size: 11px; gap: 8px; }
    .footer-brand { display: none; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .site-footer { bottom: 10px; left: 10px; right: 10px; }
    .footer-container { padding: 9px 12px; font-size: 10px; gap: 6px; }
}

.habit-header { display: flex; align-items: center; gap: 14px; }
.habit-header .bulk-checkbox { flex: 0 0 auto; }
.habit-header .habit-icon-wrap { flex: 0 0 auto; }
.habit-header .habit-title-wrap { flex: 1; min-width: 0; }
