/* Telegram-style Theme */
:root {
    --tg-bg-color: #0a0a0a;
    --tg-secondary-bg-color: #1a1a1a;
    --tg-surface-color: #2a2a2a;
    --tg-card-bg: #1a1a1a;
    --tg-text-color: #ffffff;
    --tg-hint-color: #8e8e93;
    --tg-link-color: #007aff;
    --tg-button-color: #007aff;
    --tg-button-text-color: #ffffff;
    --tg-accent-color: #007aff;
    --tg-destructive-color: #ff3b30;
    --tg-success-color: #34c759;
    --tg-border-radius: 16px;
    --tg-small-radius: 12px;
    --tg-gold-color: #ffd700;
    --tg-orange-color: #ff9500;
}

/* Base styles */
body {
    background-color: var(--tg-bg-color) !important;
    color: var(--tg-text-color) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Scrollbar Styling - полностью скрытый как в Telegram */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE and Edge */
body {
    -ms-overflow-style: none;
}

/* Smooth scrolling для iOS */
body, html {
    -webkit-overflow-scrolling: touch;
}

/* Main container */
.main-container {
    min-height: 100vh;
    padding-bottom: 80px; /* space for bottom nav */
    padding-top: 70px;
    padding-left: 5px;
    padding-right: 5px;
}

/* Cards */
.tg-card {
    background-color: var(--tg-card-bg);
    border-radius: var(--tg-border-radius);
    padding: 16px;
    margin: 12px 16px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tg-card-title {
    color: var(--tg-text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.tg-card-subtitle {
    color: var(--tg-hint-color);
    font-size: 14px;
    margin: 0;
}

/* Buttons */
/* Buttons */
.tg-button {
    background: var(--tg-button-color);
    color: var(--tg-button-text-color);
    border: none;
    border-radius: var(--tg-border-radius);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 44px;
    gap: 8px;
}

.tg-button:hover {
    background: var(--tg-surface-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tg-button-primary {
    background: linear-gradient(135deg, var(--tg-accent-color), #3a5998);
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 24px;
    width: 100%;
}

.tg-button-primary:hover {
    background: linear-gradient(135deg, #3a5998, var(--tg-accent-color));
}

.tg-button-secondary {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    color: var(--tg-text-color);
    border: 1px solid #444;
}

.tg-button-secondary:hover {
    background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
    border-color: #555;
}

.tg-button-success {
    background: linear-gradient(135deg, var(--tg-success-color), #45a049);
    color: white;
}

.tg-button-icon {
    font-size: 16px;
}

.tg-button-text {
    font-weight: inherit;
}

.tg-button-row {
    display: flex;
    gap: 12px;
}

.tg-button-row .tg-button {
    flex: 1;
}

/* Stats Grid */
.tg-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 20px;
}

.tg-stat-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: var(--tg-small-radius);
    padding: 16px 12px;
    text-align: center;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tg-stat-icon {
    font-size: 20px;
    opacity: 0.8;
}

.tg-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tg-stat-card .tg-stat-value {
    color: var(--tg-text-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.tg-stat-card .tg-stat-label {
    color: var(--tg-hint-color);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Cards */
.tg-nav-cards {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tg-nav-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: var(--tg-border-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.tg-nav-card:hover {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-color: #444;
    transform: translateY(-1px);
}

.tg-nav-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tg-gold-color), var(--tg-orange-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tg-nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tg-nav-title {
    color: var(--tg-text-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.tg-nav-subtitle {
    color: var(--tg-hint-color);
    font-size: 13px;
    line-height: 1.2;
}

.tg-nav-arrow {
    color: var(--tg-hint-color);
    font-size: 20px;
    font-weight: 300;
}

/* Special Offer */
.tg-special-offer {
    background: linear-gradient(135deg, #2a1a00, #3a2500);
    border: 1px solid var(--tg-gold-color);
    border-radius: var(--tg-border-radius);
    margin: 0 16px 20px;
    overflow: hidden;
    position: relative;
}

.tg-special-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tg-gold-color), var(--tg-orange-color), var(--tg-gold-color));
}

.tg-offer-header {
    padding: 16px 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-offer-icon {
    font-size: 18px;
}

.tg-offer-title {
    color: var(--tg-gold-color);
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.tg-offer-timer {
    color: var(--tg-gold-color);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 215, 61, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.tg-offer-content {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-offer-description {
    color: var(--tg-text-color);
    font-size: 14px;
    opacity: 0.9;
}

.tg-button-gold {
    background: linear-gradient(135deg, var(--tg-gold-color), var(--tg-orange-color));
    color: #000;
    font-weight: 600;
}

.tg-button-gold:hover {
    background: linear-gradient(135deg, var(--tg-orange-color), var(--tg-gold-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 61, 0.3);
}

/* Mining display adjustments */
.tg-mining-display {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: var(--tg-border-radius);
    margin: 20px 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid #333;
}

.tg-mining-title {
    color: var(--tg-hint-color);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tg-mining-counter {
    color: var(--tg-text-color);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .tg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tg-stat-card:last-child {
        grid-column: span 2;
    }
    
    .tg-button-row {
        flex-direction: column;
    }
    
    .tg-profile-stats {
        display: none;
    }
    
    .tg-profile-header {
        padding: 12px 16px 16px;
    }
    
    .tg-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .tg-profile-name {
        font-size: 14px;
    }
    
    .tg-game-card {
        margin: 16px 12px;
        padding: 20px;
    }
    
    .tg-character-image {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .tg-balance-value {
        font-size: 28px;
    }
}

@media (max-width: 375px) {
    .tg-profile-header {
        padding: 10px 12px 14px;
    }
    
    .tg-game-card {
        margin: 12px 8px;
        padding: 16px;
    }
    
    .tg-action-buttons,
    .tg-stats-grid,
    .tg-nav-cards {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .tg-special-offer {
        margin-left: 12px;
        margin-right: 12px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tg-avatar img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .tg-button:hover,
    .tg-nav-card:hover {
        transform: none;
    }
    
    .tg-button:active,
    .tg-nav-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        --tg-bg-color: #0a0a0a;
        --tg-secondary-bg-color: #151515;
        --tg-surface-color: #1a1a1a;
    }
}

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

/* Focus styles для accessibility */
.tg-button:focus,
.tg-nav-card:focus {
    outline: 2px solid var(--tg-accent-color);
    outline-offset: 2px;
}

/* Modal Menu */
.modal-bottom .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.tg-modal {
    background: var(--tg-bg-color);
    border: none;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.tg-modal-header {
    background: var(--tg-secondary-bg-color);
    border-bottom: 1px solid #333;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 16px 20px;
}

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

.tg-modal-close {
    color: var(--tg-hint-color);
    background: none;
    border: none;
    font-size: 24px;
    opacity: 0.7;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tg-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.tg-menu-section {
    padding: 20px 0 10px;
    border-bottom: 1px solid #222;
}

.tg-menu-section:last-child {
    border-bottom: none;
}

.tg-menu-section-title {
    color: var(--tg-hint-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 12px;
}

.tg-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--tg-text-color);
    transition: background-color 0.2s ease;
}

.tg-menu-item:hover {
    background: var(--tg-surface-color);
    color: var(--tg-text-color);
    text-decoration: none;
}

.tg-menu-icon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tg-menu-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0.8);
}

.tg-menu-text {
    font-size: 16px;
    font-weight: 500;
}

/* Стили для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .tg-container {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .tg-button {
        appearance: none;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
}

.tg-button:hover {
    background-color: #4a7ba7;
    transform: translateY(-1px);
}

.tg-button:active {
    transform: translateY(0);
}

.tg-button-secondary {
    background-color: var(--tg-secondary-bg-color);
    color: var(--tg-text-color);
}

.tg-button-success {
    background-color: var(--tg-success-color);
}

.tg-button-destructive {
    background-color: var(--tg-destructive-color);
}

/* Bottom Navigation */
.tg-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #272727a8;
    border-radius: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding: 8px 16px;
    max-width: calc(100% - 25px);
    width: calc(100% - 25px);
    max-width: 600px;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Убеждаемся что main контейнер имеет отступ для меню */
#root.account-app {
    position: relative;
    min-height: 100vh;
    padding-bottom: 110px; /* отступ для летающего меню (70px высота + 20px отступ снизу + 20px дополнительно) */
}

.tg-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 4px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 52px;
    border-radius: 12px;
}

.tg-nav-item.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
}

.tg-nav-item.active .tg-nav-label {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.tg-nav-item:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.tg-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tg-nav-icon i {
    font-size: 14px;
    line-height: 1;
}

.tg-nav-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.tg-nav-icon-gray {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.tg-nav-icon-yellow {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: white;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.tg-nav-icon-dark {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.tg-nav-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.tg-nav-item.active .tg-nav-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    filter: brightness(1.2);
}

.tg-nav-item:hover .tg-nav-icon {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.tg-nav-label {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    font-family: "Lilita One", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tg-nav-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #1c1c1e;
    z-index: 10;
}

.tg-nav-badge {
    position: absolute;
    top: 2px;
    right: 20%;
    background-color: var(--tg-destructive-color);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Mining display */
.tg-mining-display {
    background: linear-gradient(135deg, var(--tg-surface-color) 0%, var(--tg-secondary-bg-color) 100%);
    border-radius: var(--tg-border-radius);
    padding: 24px;
    margin: 16px;
    text-align: center;
    border: 1px solid #3a4a5c;
}

.tg-mining-title {
    color: var(--tg-text-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tg-mining-counter {
    background-color: var(--tg-card-bg);
    border-radius: var(--tg-small-radius);
    padding: 16px 20px;
    font-size: 32px;
    font-weight: 700;
    color: var(--tg-accent-color);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 1px;
    border: 1px solid #3a4a5c;
    margin-bottom: 16px;
}

/* Section headers */
.tg-section-header {
    padding: 16px 16px 8px;
    color: var(--tg-hint-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List items */
.tg-list-item {
    background-color: var(--tg-card-bg);
    margin: 0 16px 8px;
    border-radius: var(--tg-small-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #3a4a5c;
    transition: background-color 0.2s ease;
}

.tg-list-item:hover {
    background-color: #243441;
}

.tg-list-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tg-surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-list-text {
    flex: 1;
}

.tg-list-title {
    color: var(--tg-text-color);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 2px 0;
}

.tg-list-subtitle {
    color: var(--tg-hint-color);
    font-size: 14px;
    margin: 0;
}

.tg-list-value {
    color: var(--tg-accent-color);
    font-size: 16px;
    font-weight: 600;
}

/* User profile header как на скриншоте */
.tg-profile-header {
    background-color: var(--tg-bg-color);
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.tg-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-accent-color), var(--tg-surface-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 600;
    overflow: hidden;
}

.tg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tg-profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-profile-name {
    color: var(--tg-text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.tg-profile-badge {
    background: linear-gradient(135deg, #4a5568, #718096);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tg-profile-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tg-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 40px;
}

.tg-stat-value {
    color: var(--tg-text-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.tg-stat-label {
    color: var(--tg-hint-color);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Центральная карточка игры */
.tg-game-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: var(--tg-border-radius);
    margin: 20px 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.tg-game-balance {
    text-align: center;
    margin-bottom: 24px;
}

.tg-balance-icon {
    width: 32px;
    height: 32px;
    background: var(--tg-gold-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
}

.tg-balance-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--tg-text-color);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.tg-character-card {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-radius: var(--tg-border-radius);
    padding: 20px;
    text-align: center;
    position: relative;
    border: 2px solid #444;
    margin-bottom: 20px;
}

.tg-character-level {
    position: absolute;
    top: -8px;
    left: 16px;
    background: #666;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tg-character-rarity {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.tg-character-image {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    background: linear-gradient(135deg, var(--tg-gold-color), var(--tg-orange-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.tg-character-title {
    color: var(--tg-text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 4px;
}

.tg-character-subtitle {
    color: var(--tg-hint-color);
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
}

/* Timer card */
.tg-timer-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: var(--tg-small-radius);
    padding: 16px;
    text-align: center;
    border: 1px solid #333;
}

.tg-timer-text {
    color: var(--tg-hint-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.tg-timer-value {
    color: var(--tg-text-color);
    font-size: 20px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.tg-timer-hearts {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}

.tg-heart {
    width: 16px;
    height: 16px;
    background: #333;
    border-radius: 2px;
}

.tg-heart.active {
    background: var(--tg-destructive-color);
}

/* Forms */
.tg-input {
    background-color: var(--tg-card-bg);
    border: 1px solid #3a4a5c;
    border-radius: var(--tg-small-radius);
    color: var(--tg-text-color);
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.tg-input:focus {
    outline: none;
    border-color: var(--tg-accent-color);
    box-shadow: 0 0 0 3px rgba(100, 181, 239, 0.1);
}

.tg-input::placeholder {
    color: var(--tg-hint-color);
}

/* Progress bars */
.tg-progress {
    background-color: var(--tg-secondary-bg-color);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin: 8px 0;
}

.tg-progress-fill {
    background: linear-gradient(90deg, var(--tg-accent-color), var(--tg-surface-color));
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Spacing utilities */
.tg-mt-1 { margin-top: 8px; }
.tg-mt-2 { margin-top: 16px; }
.tg-mt-3 { margin-top: 24px; }
.tg-mb-1 { margin-bottom: 8px; }
.tg-mb-2 { margin-bottom: 16px; }
.tg-mb-3 { margin-bottom: 24px; }
.tg-p-1 { padding: 8px; }
.tg-p-2 { padding: 16px; }
.tg-p-3 { padding: 24px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .tg-card {
        margin: 8px;
        padding: 12px;
    }
    
    .tg-mining-display {
        margin: 8px;
        padding: 16px;
    }
    
    .tg-mining-counter {
        font-size: 28px;
        padding: 12px 16px;
    }
}