/* =================== MOBILE APP CSS - 2D CARTOON STYLE =================== */

/* CSS Variables - Kékes főárnyalat */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #FFD700;
    --success-color: #00ff88;
    --warning-color: #FFA500;
    --error-color: #ff6b6b;
    --info-color: #17a2b8;
    
    /* 2D Cartoon Colors */
    --cartoon-shadow: rgba(0, 0, 0, 0.3);
    --cartoon-highlight: rgba(255, 255, 255, 0.3);
    --cartoon-border: 3px solid rgba(0, 0, 0, 0.2);
    
    /* Background gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-button: linear-gradient(145deg, var(--accent-color) 0%, #e6c200 100%);
    
    /* Spacings */
    --border-radius: 20px;
    --border-radius-small: 12px;
    --shadow-cartoon: 0 8px 20px rgba(0, 0, 0, 0.25);
    --shadow-float: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* =================== RESET & BASE =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--gradient-primary);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================== APP CONTAINER =================== */
.app-container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--gradient-primary);
}

/* =================== SCREENS =================== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: slideIn 0.3s ease-out;
}

.screen.active {
    display: block;
}

.main-screen {
    padding-bottom: 90px; /* Space for bottom nav */
}

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

/* =================== WELCOME SCREEN =================== */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
}

.welcome-logo {
    margin-bottom: 30px;
}

.welcome-logo img {
    width: 120px;
    height: 120px;
    box-shadow: var(--shadow-cartoon);
}

.welcome-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.1em;
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.4;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

/* =================== AUTH SCREENS =================== */
.auth-screen {
    padding-top: 60px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: -20px;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-float);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.auth-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-cartoon);
}

.auth-title {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.auth-subtitle {
    opacity: 0.8;
    font-size: 1em;
}

.auth-form {
    max-width: 100%;
}

/* =================== FORM ELEMENTS =================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9em;
    opacity: 0.9;
}

.form-input, .search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1em;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.form-input:focus, .search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-input::placeholder, .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* =================== BUTTONS =================== */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-shadow: var(--shadow-float);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-button);
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cartoon);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-demo {
    background: linear-gradient(145deg, var(--info-color), #0d8aa3);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(145deg, var(--error-color), #e55555);
    color: white;
}

.btn-package {
    background: var(--gradient-button);
    color: #333;
    font-weight: bold;
}

.btn-full {
    width: 100%;
}

/* =================== SCREEN HEADERS =================== */
.screen-header {
    text-align: center;
    margin-bottom: 30px;
}

.screen-header h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
    font-weight: bold;
}

.screen-header p {
    opacity: 0.8;
    font-size: 0.95em;
}

.header-greeting {
    text-align: left;
}

.header-greeting h2 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.header-greeting p {
    opacity: 0.7;
    font-size: 0.9em;
}

.header-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    box-shadow: var(--shadow-float);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* =================== BALANCE CARDS =================== */
.balance-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 25px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-cartoon);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

.balance-card.merchant::before {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.balance-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.balance-type {
    font-size: 1.1em;
    font-weight: 600;
    opacity: 0.9;
}

.balance-amount {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.balance-breakdown {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--border-radius-small);
    font-size: 0.9em;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

/* =================== ACTION GRID =================== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.action-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-cartoon);
    border-color: var(--accent-color);
}

.action-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.action-icon {
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.action-title {
    font-size: 1em;
    font-weight: 600;
    opacity: 0.9;
}

/* =================== TRANSACTIONS SECTION =================== */
.transactions-section {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
}

.transactions-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.transactions-list {
    margin-bottom: 15px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-body {
    padding: 25px;
}

/* =================== AUTH LINKS =================== */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

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

.demo-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-text {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .screen {
        padding: 15px;
    }
    
    .welcome-content {
        padding: 30px 15px;
    }
    
    .welcome-title {
        font-size: 2.2em;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .balance-section {
        gap: 15px;
    }
    
    .membership-packages {
        gap: 15px;
    }
    
    .demo-qr-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .filter-tag {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

@media (max-width: 360px) {
    .welcome-logo img {
        width: 100px;
        height: 100px;
    }
    
    .welcome-title {
        font-size: 2em;
    }
    
    .balance-amount {
        font-size: 2em;
    }
    
    .action-card {
        padding: 20px 15px;
    }
    
    .action-icon {
        font-size: 1.8em;
    }

    .action-icon img {
        width: 140px !important;
        height: 140px !important;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .package-icon {
        font-size: 2.5em;
    }
    
    .nav-text {
        font-size: 0.7em;
    }
    
    .nav-icon {
        font-size: 1.2em;
    }
}

/* =================== ANIMATIONS =================== */
.pulse {
    animation: logoScale 2s ease-in-out infinite;
}

@keyframes logoScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseFrame {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Special animations for action cards */
.action-card:nth-child(1) {
    animation-delay: 0.1s;
}

.action-card:nth-child(2) {
    animation-delay: 0.2s;
}

.action-card:nth-child(3) {
    animation-delay: 0.3s;
}

.action-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Balance cards animation */
.balance-card {
    animation: fadeInUp 0.6s ease-out;
}

.balance-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* =================== LOADING STATES =================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* =================== UTILITY CLASSES =================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: bold;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.rounded {
    border-radius: var(--border-radius-small);
}

.rounded-full {
    border-radius: 50%;
}

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

/* Focus states for better accessibility */
.btn:focus,
.form-input:focus,
.nav-item:focus,
.action-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --cartoon-border: 3px solid rgba(0, 0, 0, 0.8);
        --shadow-cartoon: 0 8px 20px rgba(0, 0, 0, 0.8);
        --shadow-float: 0 4px 15px rgba(0, 0, 0, 0.6);
    }
    
    .balance-card,
    .action-card,
    .partner-card,
    .package-card {
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.transaction-details h4 {
    font-size: 0.95em;
    margin-bottom: 3px;
}

.transaction-details p {
    font-size: 0.8em;
    opacity: 0.7;
}

.transaction-amount {
    font-weight: bold;
    font-size: 0.95em;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--error-color);
}

/* =================== SEARCH & FILTERS =================== */
.search-section {
    margin-bottom: 25px;
}

.filter-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.filter-tag.active,
.filter-tag:hover {
    background: var(--accent-color);
    color: #333;
    border-color: var(--accent-color);
}

/* =================== PARTNERS LIST =================== */
.partners-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-cartoon);
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.partner-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #333;
}

.partner-info h3 {
    font-size: 1.1em;
    margin-bottom: 3px;
}

.partner-info p {
    font-size: 0.9em;
    opacity: 0.7;
}

.partner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.partner-stat {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-small);
}

.partner-stat-value {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--success-color);
}

.partner-stat-label {
    font-size: 0.8em;
    opacity: 0.7;
}

/* =================== MARKETPLACE =================== */
.marketplace-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    padding: 5px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.tab-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-item.active {
    background: var(--accent-color);
    color: #333;
    box-shadow: var(--shadow-float);
}

.marketplace-content {
    min-height: 400px;
}

.listing-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
}

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

.listing-type {
    background: var(--info-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.listing-amount {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--accent-color);
}

.listing-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.listing-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

/* =================== EXCHANGE FORM =================== */
.exchange-form {
    max-width: 100%;
}

.exchange-input-group {
    margin-bottom: 20px;
}

.exchange-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1em;
}

.exchange-input {
    display: flex;
    background: var(--gradient-card);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.exchange-input input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.1em;
}

.exchange-input input:focus {
    outline: none;
}

.exchange-input select {
    padding: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    min-width: 120px;
    cursor: pointer;
}

.exchange-input select:focus {
    outline: none;
}

.exchange-swap-btn {
    text-align: center;
    margin: 15px 0;
}

.exchange-swap-btn button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-float);
}

.exchange-swap-btn button:hover {
    transform: rotate(180deg) scale(1.1);
}

.exchange-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--border-radius-small);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* =================== MEMBERSHIP PACKAGES =================== */
.membership-packages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
    position: relative;
    transition: all 0.3s ease;
}

.package-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.package-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-cartoon);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #333;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

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

.package-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.package-header h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.package-price {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.package-szc {
    font-size: 1.3em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.package-bonus {
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.package-features {
    margin: 20px 0;
}

.feature {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

.feature:last-child {
    border-bottom: none;
}

/* =================== QR SCANNER =================== */
.qr-scanner-section {
    margin-bottom: 30px;
}

.qr-scanner {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    position: relative;
    animation: scannerPulse 2s infinite;
}

.scanner-frame::before,
.scanner-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--accent-color);
}

.scanner-frame::before {
    top: -4px;
    left: -4px;
    border-right: transparent;
    border-bottom: transparent;
}

.scanner-frame::after {
    bottom: -4px;
    right: -4px;
    border-left: transparent;
    border-top: transparent;
}

@keyframes scannerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }
}

.demo-qr-section h3 {
    margin-bottom: 20px;
    text-align: center;
}

.demo-qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.demo-qr-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
}

.demo-qr-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-cartoon);
    border-color: var(--accent-color);
}

.qr-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.qr-title {
    font-size: 0.9em;
    font-weight: 600;
}

/* =================== SETTINGS =================== */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-section {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-float);
}

.settings-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--accent-color);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: var(--border-radius-small);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--accent-color);
}

input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Connection Status */
.connection-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

.status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.status.online {
    background: var(--success-color);
    color: #333;
}

.status.checking {
    background: var(--warning-color);
    color: #333;
}

.status.offline {
    background: var(--error-color);
    color: white;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ✅ JAVÍTOTT VERZIÓ - 4 NAV ELEMRE OPTIMALIZÁLT */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;                /* Balra igazítva */
    right: 0;               /* Jobbra igazítva */
    width: 100%;
    max-width: 480px;       /* Maximum szélesség mobilon */
    margin: 0 auto;         /* Automatikus középre igazítás */
    display: flex;
    justify-content: space-between;  /* JAVÍTÁS: space-around helyett space-between */
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;      /* JAVÍTÁS: több padding oldalanként */
    z-index: 1000;
}

.bottom-nav.hidden {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 8px;        /* JAVÍTÁS: több padding */
    border-radius: 12px;
    margin: 0 4px;           /* JAVÍTÁS: több margin */
    flex: 1;                 /* JAVÍTÁS: egyenletes elosztás */
    max-width: 80px;         /* JAVÍTÁS: maximum szélesség */
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

.nav-icon {
    height: 40px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
}

.nav-text {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 2px;
}

.nav-item.active .nav-text {
    opacity: 1;
    color: var(--accent-color);
    font-weight: 600;
}

/* =================== MODALS =================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =================== MARKETPLACE SCREEN STYLES =================== */

.marketplace-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
}

.marketplace-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.5rem;
        transition: all 0.3s ease;
}

.marketplace-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(102, 126, 234, 0.5);
        transform: translateY(-2px);
}

.marketplace-card .card-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: #fff;
}

.marketplace-card .card-header p {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        margin: 0.25rem 0;
}

.marketplace-card .card-info {
        margin: 1rem 0;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
}

.marketplace-card .card-info p {
        margin: 0.5rem 0;
        color: rgba(255, 255, 255, 0.9);
}

.marketplace-card .card-info strong {
        color: #667eea;
        font-size: 1.1rem;
}

.marketplace-card .card-exchange {
        margin-top: 1rem;
}

.exchange-input {
        width: 100%;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #fff;
        font-size: 1rem;
        margin-bottom: 0.75rem;
}

.exchange-input:focus {
        outline: none;
        border-color: #667eea;
        background: rgba(0, 0, 0, 0.4);
}

.exchange-preview {
        padding: 0.75rem;
        background: rgba(102, 126, 234, 0.1);
        border-left: 3px solid #667eea;
        border-radius: 4px;
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.9);
}

.exchange-preview strong {
        color: #667eea;
        font-size: 1.1rem;
}

.exchange-button {
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
}

.exchange-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.exchange-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
}

.info-message, .error-message {
        padding: 1.5rem;
        text-align: center;
        border-radius: 8px;
        margin: 2rem 0;
}

.info-message {
        background: rgba(102, 126, 234, 0.1);
        color: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(102, 126, 234, 0.3);
}

.error-message {
        background: rgba(239, 68, 68, 0.1);
        color: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-content {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-cartoon);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}