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

:root {
    --bg-color: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #95a5a6;
    --accent-color: #ff1744;
    --accent-glow: rgba(255, 23, 68, 0.3);
    --border-color: rgba(0, 0, 0, 0.08);
    --menu-hover-bg: rgba(255, 23, 68, 0.04);
    --transition-speed: 0.6s;
}

[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #808080;
    --accent-color: #ff1744;
    --accent-glow: rgba(255, 23, 68, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --menu-hover-bg: rgba(255, 23, 68, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 20px;
    transition: background var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

body.theme-transitioning::before {
    opacity: 1;
}

.theme-toggle {
    position: fixed;
    top: 25px;
    right: 80px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s ease,
                background 0.25s ease,
                box-shadow 0.25s ease;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,.08), 0 0 0 0 var(--accent-glow);
    animation: fadeInRotate 0.8s ease 0.3s both;
    will-change: transform;
    color: var(--text-secondary);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { position: absolute; }

[data-theme="dark"]  .theme-toggle .icon-sun  { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="dark"]  .theme-toggle .icon-moon { opacity: 0; transform: scale(0) rotate(90deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 0; transform: scale(0) rotate(-90deg); }

@keyframes fadeInRotate {
    from { opacity: 0; transform: rotate(-180deg) scale(0); }
    to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 2px 12px var(--accent-glow), 0 0 0 3px rgba(255,23,68,.07);
    color: var(--accent-color);
}

.theme-toggle:active { transform: scale(1.03); }

.menu-button {
    position: fixed;
    top: 25px;
    right: 25px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 101;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s ease,
                background 0.25s ease,
                box-shadow 0.25s ease;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    animation: fadeInRotate 0.8s ease 0.4s both;
    will-change: transform;
}

.menu-button:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 2px 12px var(--accent-glow), 0 0 0 3px rgba(255,23,68,.07);
}

.menu-button:active { transform: scale(1.03); }

.menu-line {
    width: 16px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                width 0.25s ease;
}

.menu-line:nth-child(1) { width: 16px; }
.menu-line:nth-child(2) { width: 12px; }
.menu-line:nth-child(3) { width: 16px; }

.menu-button:hover .menu-line {
    background: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-glow);
    width: 16px;
}

.menu-button.active .menu-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 16px; }
.menu-button.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-button.active .menu-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 16px; }

.menu-panel {
    position: fixed;
    top: 76px;
    right: 25px;
    width: 290px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 18px;
    padding: 6px;
    box-shadow:
        0 4px 6px rgba(0,0,0,.04),
        0 12px 40px rgba(0,0,0,.10),
        0 0 0 0.5px rgba(255,255,255,.8) inset;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition:
        opacity 0.2s cubic-bezier(0.4,0,0.2,1),
        transform 0.2s cubic-bezier(0.34,1.2,0.64,1),
        visibility 0.2s;
    will-change: opacity, transform;
}

[data-theme="dark"] .menu-panel {
    background: rgba(15,15,15,0.88);
    border-color: rgba(255,255,255,.07);
    box-shadow:
        0 4px 6px rgba(0,0,0,.2),
        0 16px 48px rgba(0,0,0,.5),
        0 0 0 0.5px rgba(255,255,255,.04) inset;
}

.menu-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-folder { border-radius: 10px; overflow: hidden; margin-bottom: 3px; }
.menu-folder:last-child { margin-bottom: 0; }

.menu-folder-header {
    padding: 11px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 11px;
    background: transparent;
    transition: background 0.16s ease;
    position: relative;
    user-select: none;
}

.menu-folder-header:hover { background: var(--menu-hover-bg); }
[data-theme="dark"] .menu-folder-header:hover { background: rgba(255, 23, 68, 0.06); }

.menu-folder-label { display: flex; align-items: center; gap: 0; }
.menu-folder-icon { display: none; }

.menu-folder-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.menu-folder-header:hover .menu-folder-name { color: var(--accent-color); }

.menu-folder-right { display: flex; align-items: center; gap: 8px; }

.menu-folder-count {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--border-color);
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-folder-header:hover .menu-folder-count {
    background: rgba(255, 23, 68, 0.1);
    color: var(--accent-color);
}

.menu-folder-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: transform 0.22s ease, color 0.18s ease;
}

.menu-folder-arrow svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-folder.open .menu-folder-arrow { transform: rotate(90deg); color: var(--accent-color); }

.menu-folder-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    padding: 0 4px;
}

.menu-folder.open .menu-folder-content {
    max-height: 700px;
    padding-bottom: 4px;
}

.menu-item {
    padding: 9px 12px;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.14s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: inherit;
    margin-bottom: 1px;
    position: relative;
}

.menu-item:last-child { margin-bottom: 0; }
.menu-item:hover { background: var(--menu-hover-bg); }
.menu-item:hover .menu-item-arrow { opacity: 1; transform: translateX(0); }
[data-theme="dark"] .menu-item:hover { background: rgba(255, 23, 68, 0.05); }
.menu-item:active { opacity: 0.7; transform: scale(0.99); }

.menu-item-body { flex: 1; min-width: 0; }

.menu-item-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item:hover .menu-item-title { color: var(--accent-color); }

.menu-item-desc {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.1px;
    transition: color 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-arrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    color: var(--accent-color);
}

.menu-item-arrow svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-folder-premium .menu-folder-name {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-folder-premium .menu-folder-header:hover .menu-folder-name { filter: brightness(1.15); }

.menu-folder-premium .menu-folder-desc {
    font-size: 10.5px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 3px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.menu-folder-premium.revealed .menu-folder-desc { max-height: 40px; opacity: 1; }
.menu-folder-premium.revealed .menu-folder-arrow { transform: rotate(90deg); color: #ffd200; }

.menu-folder-cat-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease;
}

.menu-folder-cat-icon svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-folder-header:hover .menu-folder-cat-icon { transform: scale(1.12); }

.menu-folder.open > .menu-folder-header { background: var(--menu-hover-bg); }
[data-theme="dark"] .menu-folder.open > .menu-folder-header { background: rgba(255,23,68,.05); }

.menu-folder-content { overflow-x: hidden; }

.menu-folder.open .menu-folder-content {
    overflow-y: auto;
    max-height: 260px;
}

.menu-folder.open .menu-folder-content::-webkit-scrollbar { width: 3px; }
.menu-folder.open .menu-folder-content::-webkit-scrollbar-track { background: transparent; }
.menu-folder.open .menu-folder-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.menu-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.16s ease, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

.menu-item-icon svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-item:hover .menu-item-icon { transform: scale(1.1); }

@keyframes menuItemIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-folder.open .menu-item { animation: menuItemIn 0.18s ease-out both; }
.menu-folder.open .menu-item:nth-child(1) { animation-delay:  0ms; }
.menu-folder.open .menu-item:nth-child(2) { animation-delay: 25ms; }
.menu-folder.open .menu-item:nth-child(3) { animation-delay: 45ms; }
.menu-folder.open .menu-item:nth-child(4) { animation-delay: 65ms; }
.menu-folder.open .menu-item:nth-child(5) { animation-delay: 80ms; }
.menu-folder.open .menu-item:nth-child(6) { animation-delay: 95ms; }

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
    transition: background var(--transition-speed) ease;
}

.container {
    max-width: 480px;
    width: 100%;
    animation: slideInFromLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(100%) rotate(5deg); }
    to   { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.profile-section { text-align: center; padding: 0 20px; margin-bottom: 20px; }

.profile-image-wrapper {
    position: relative;
    width: 115px;
    height: 115px;
    margin: 0 auto 25px;
    animation: zoomBounce 1s ease 0.3s both, float 3s ease-in-out 1.3s infinite;
    will-change: transform;
}

@keyframes zoomBounce {
    0%   { opacity: 0; transform: scale(0) rotate(180deg); }
    60%  { transform: scale(1.15) rotate(-10deg); }
    80%  { transform: scale(0.95) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

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

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-ring {
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1744, #ff5252, #ff1744);
    padding: 3px;
    animation: pulseGlow 3s ease-in-out infinite, colorShift 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.85; filter: blur(0px); }
    50%       { transform: scale(1.03); opacity: 1; filter: blur(1px); }
}

@keyframes colorShift {
    0%, 100% { background: linear-gradient(135deg, #ff1744, #ff5252, #ff1744); }
    14%  { background: linear-gradient(135deg, #f50057, #ff4081, #ff1744); }
    28%  { background: linear-gradient(135deg, #e91e63, #ff1744, #ff5252); }
    42%  { background: linear-gradient(135deg, #ff4081, #f50057, #e91e63); }
    57%  { background: linear-gradient(135deg, #667eea, #764ba2, #f093fb); }
    71%  { background: linear-gradient(135deg, #4facfe, #00f2fe, #43e97b); }
    85%  { background: linear-gradient(135deg, #43e97b, #38f9d7, #667eea); }
}

.profile-name {
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    animation: slideInRight 0.8s ease 0.5s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.verified-badge {
    width: 18px;
    height: 18px;
    background: #1877f2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: badgePop 0.6s ease 0.8s both, badgeSpin 4s linear 1.4s infinite;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
    will-change: transform;
}

@keyframes badgePop {
    0%   { opacity: 0; transform: scale(0) rotate(180deg); }
    60%  { transform: scale(1.3) rotate(-10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes badgeSpin {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(0deg) scale(1.15); }
    50%  { transform: rotate(180deg) scale(1); }
    75%  { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.verified-badge svg { width: 100%; height: 100%; }

.profile-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: fadeInUp 0.7s ease 0.6s both, portfolioColorShift 4s ease-in-out 2s infinite;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes portfolioColorShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.beta-label { display: none; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-quote {
    font-size: 9px;
    margin-bottom: 35px;
    font-weight: 500;
    animation: fadeInUp 0.7s ease 0.7s both;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    transition: color 0.5s ease;
    position: relative;
}

.profile-quote.quote-glow {
    text-shadow: 0 0 20px currentColor;
    animation: quoteGlowPulse 2s ease-out forwards;
}

@keyframes quoteGlowPulse {
    0%   { text-shadow: 0 0 20px currentColor; }
    50%  { text-shadow: 0 0 30px currentColor, 0 0 40px currentColor; }
    100% { text-shadow: none; }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 11px;
    background-color: currentColor;
    margin-left: 3px;
    animation: blink 1s infinite;
    vertical-align: middle;
    opacity: 0.8;
}

@keyframes blink {
    0%, 49%  { opacity: 0.8; }
    50%, 100% { opacity: 0; }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 50px;
    animation: fadeInUp 0.7s ease 0.8s both;
}

.social-icon {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    text-decoration: none;
    animation: breathe 2.5s ease-in-out 1.5s infinite;
    will-change: transform;
}

.social-icon:nth-child(1) { animation-delay: 1.5s; }
.social-icon:nth-child(2) { animation-delay: 1.8s; }
.social-icon:nth-child(3) { animation-delay: 2.1s; }

@keyframes breathe {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-2px) scale(1.02); }
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.12) rotate(2deg);
    color: var(--accent-color);
    filter: drop-shadow(0 4px 8px var(--accent-glow));
}

.social-icon:active { transform: translateY(-2px) scale(1.08); }

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg { transform: rotate(-2deg); }

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 45px;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    animation: popIn 0.6s ease both;
    transition: transform 0.3s ease;
}

.stat-item:hover { transform: translateY(-2px); }
.stat-item:nth-child(1) { animation-delay: 0.9s; }
.stat-item:nth-child(2) { animation-delay: 1s; }
.stat-item:nth-child(3) { animation-delay: 1.1s; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.time-battery-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.7s ease 1.2s both;
    padding: 20px;
}

.ping-display {
    font-size: 8px;
    font-weight: 600;
    color: #43e97b;
    margin-top: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.ph-time-display {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: timeGlow 3s ease-in-out infinite;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes timeGlow {
    0%, 100% { text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3); }
    50%       { text-shadow: 0 2px 15px rgba(102, 126, 234, 0.6); }
}

.time-label {
    font-size: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.battery-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.battery-container:hover {
    box-shadow: 0 5px 18px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px) scale(1.02);
}

.battery-icon {
    position: relative;
    width: 26px;
    height: 13px;
    border: 2px solid var(--text-primary);
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: border-color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 0 2px 2px 0;
    transition: background var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.battery-fill {
    height: 100%;
    background: linear-gradient(90deg, #43e97b, #38f9d7);
    border-radius: 2px;
    transition: width 0.5s ease, background 0.5s ease;
    animation: batteryPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(67, 233, 123, 0.5);
}

@keyframes batteryPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(67, 233, 123, 0.5); }
    50%       { box-shadow: 0 0 15px rgba(67, 233, 123, 0.8); }
}

.battery-fill.low    { background: linear-gradient(90deg, #ff6b6b, #ff8787); box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
.battery-fill.medium { background: linear-gradient(90deg, #ffd93d, #ffed4e); box-shadow: 0 0 8px rgba(255, 217, 61, 0.5); }

.battery-percentage {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 42px;
    text-align: left;
    transition: color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.footer {
    text-align: center;
    padding: 0 20px;
    animation: slideInBottom 0.8s ease 1.3s both;
}

@keyframes slideInBottom {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.footer-text {
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(90deg,
        #ff0000, #ff7f00, #ffff00, #00ff00,
        #0000ff, #4b0082, #9400d3, #ff0000
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rgbFlow 2s linear infinite;
}

@keyframes rgbFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (max-width: 600px) {
    .stats { gap: 35px; flex-wrap: wrap; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }
    .profile-name { font-size: 23px; }
    .theme-toggle { top: 18px; right: 70px; }
    .menu-button { top: 18px; right: 18px; }
    .menu-panel { right: 18px; width: 260px; }
    .profile-image-wrapper { width: 105px; height: 105px; }
    .verified-badge { width: 16px; height: 16px; }
    .verified-badge svg { width: 9px; height: 9px; }
}

@media (max-width: 400px) {
    .stats { flex-direction: column; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
