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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-card: #334155;
    --border-color: rgba(100, 116, 139, 0.2);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2a4a 50%, var(--dark-bg) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    background-attachment: fixed;
}

.navbar {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.navbar-brand .logo:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.8rem;
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.user-info-card {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.balance-widget {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.balance-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-label-small {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-amount-small {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-divider-small {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 116, 139, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    font-size: 2.5rem;
    color: white;
}

.welcome-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.shop-header {
    text-align: center;
    margin-bottom: 3rem;
}

.shop-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.shop-search {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.shop-search:focus-within {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.shop-search i {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.search-field::placeholder {
    color: var(--text-muted);
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.item-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.item-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.item-card:hover::before {
    opacity: 0.1;
}

.item-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.item-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.item-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-price {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.item-stock {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #86efac;
}

.item-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.8rem;
    background: rgba(100, 116, 139, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.buy-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-btn.available {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.buy-btn.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.buy-btn.available:active {
    transform: translateY(0);
}

.buy-btn.insufficient {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: not-allowed;
}

.buy-btn.disabled {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.2) 100%);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 2rem;
}

.loading-container[style*="display: flex"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9998;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.notification {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

.notification.error .notification-icon {
    color: var(--danger);
}

.notification.info {
    border-left: 4px solid var(--primary);
}

.notification.info .notification-icon {
    color: var(--primary);
}

.notification-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--text-primary);
}

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

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

.notification.removing {
    animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.balance-info-group {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.balance-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.balance-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-content: center;
}

.balance-info-label i {
    font-size: 1.2rem;
}

.balance-info-amount {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-info-divider {
    width: 1px;
    background: var(--border-color);
    height: 100%;
}

.balance-total {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.balance-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.balance-total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.balance-clickable {
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.balance-clickable:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

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

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

.banking-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banking-section h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.banking-label {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.banking-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.banking-input-group input {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.banking-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.banking-input-group input::placeholder {
    color: var(--text-muted);
}

.banking-input-group .btn {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.banking-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        height: auto;
        gap: 1rem;
    }

    .navbar-brand .logo {
        font-size: 1.3rem;
    }

    .navbar-brand i {
        font-size: 1.5rem;
    }

    .user-panel {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .user-info-card {
        gap: 1rem;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .user-details {
        align-items: center;
    }

    .balance-widget {
        width: 100%;
        justify-content: center;
    }

    .navbar-auth {
        width: 100%;
        flex-direction: column;
    }

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

    .main-content {
        padding: 1rem;
        min-height: auto;
    }

    .shop-header {
        margin-bottom: 2rem;
    }

    .shop-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .shop-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .shop-search {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .item-card {
        padding: 1rem;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .item-price {
        font-size: 1.5rem;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .welcome-card h2 {
        font-size: 1.5rem;
    }

    .notification-container {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }

    .notification {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .modal-content {
        max-width: 90vw;
        width: auto;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .balance-info-group {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .balance-info-divider {
        display: none;
    }

    .banking-input-group {
        flex-direction: column;
    }

    .banking-input-group .btn {
        width: 100%;
        padding: 0.8rem;
    }

    .footer-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        position: sticky;
        top: 0;
    }

    .navbar-container {
        height: auto;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .navbar-brand .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .navbar-brand i {
        font-size: 1.3rem;
    }

    .user-info-card {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .user-info-card .btn {
        width: auto;
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
        flex: 0 1 auto;
    }

    .user-info-card .btn i {
        margin-right: 0;
    }

    .user-name {
        font-size: 0.95rem;
    }

    .balance-label-small {
        font-size: 0.6rem;
    }

    .balance-amount-small {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .shop-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .shop-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .shop-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .shop-search {
        padding: 0.6rem 0.8rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .search-field {
        font-size: 0.9rem;
    }

    .shop-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .item-card {
        padding: 0.8rem;
    }

    .item-header {
        margin-bottom: 0.75rem;
    }

    .item-name {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .item-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .item-footer {
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .item-price {
        font-size: 1.3rem;
    }

    .item-stock {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .item-info {
        font-size: 0.75rem;
        padding: 0.6rem;
    }

    .buy-btn {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .welcome-section {
        min-height: auto;
        padding: 1rem;
    }

    .welcome-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
        border-radius: 16px;
    }

    .welcome-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
        font-size: 1.8rem;
    }

    .welcome-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .welcome-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .modal-content {
        width: 95vw;
        max-width: 95vw;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1.2rem;
        gap: 1rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-close {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .balance-info-group {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .balance-info-item {
        gap: 0.75rem;
    }

    .balance-info-label {
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .balance-info-label i {
        font-size: 1rem;
    }

    .balance-info-amount {
        font-size: 1.5rem;
    }

    .balance-total {
        padding: 1.5rem;
    }

    .balance-total-label {
        font-size: 0.8rem;
    }

    .balance-total-amount {
        font-size: 1.8rem;
        gap: 0.3rem;
    }

    .banking-section {
        gap: 0.75rem;
    }

    .banking-section h3 {
        font-size: 1rem;
    }

    .banking-label {
        font-size: 0.8rem;
    }

    .banking-input-group {
        flex-direction: column;
        gap: 0.6rem;
    }

    .banking-input-group input {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }

    .banking-input-group .btn {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .banking-divider {
        margin: 1rem 0;
    }

    .purchase-modal-content {
        padding: 2rem 1rem;
    }

    .purchase-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .purchase-status h2 {
        font-size: 1.3rem;
    }

    .purchase-status p {
        font-size: 0.85rem;
    }

    .notification-container {
        left: 8px;
        right: 8px;
        top: 8px;
        gap: 0.75rem;
    }

    .notification {
        padding: 0.85rem;
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    .notification-icon {
        font-size: 1.1rem;
    }

    .notification-title {
        font-size: 0.85rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }

    .footer {
        margin-top: 2rem;
    }

    .footer-container {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-branding {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .footer-branding i {
        font-size: 1.2rem;
    }

    .footer-branding h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.8rem;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-credit {
        font-size: 0.75rem;
    }

    .footer-divider {
        margin-bottom: 1rem;
    }
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.history-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.history-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.history-item-amount {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.history-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}

.history-modal-content {
    max-width: 600px;
}

.history-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 375px) {
    .navbar-brand .logo {
        font-size: 1rem;
    }

    .navbar-brand i {
        display: none;
    }

    .shop-header h1 {
        font-size: 1.2rem;
    }

    .welcome-card {
        padding: 1.2rem 0.8rem;
    }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

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

    .item-card {
        padding: 0.7rem;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .history-item-price {
        font-size: 1rem;
    }
}

.purchase-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.purchase-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.purchase-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: scaleIn 0.4s ease;
}

.purchase-icon.loading {
    font-size: 2.5rem;
    animation: spin 1s linear infinite;
}

.purchase-icon.success {
    color: var(--success);
}

.purchase-icon.error {
    color: var(--danger);
}

.purchase-status h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.purchase-status p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.purchase-actions .btn {
    flex: 1;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

.logout-animation {
    animation: fadeOut 0.5s ease-out forwards;
}

.footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-branding i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-branding h3 {
    font-size: 1.3rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 1.5rem;
}

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

.footer-credit {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.brand-name {
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        padding: 2rem 1.5rem;
    }
}

.points-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid var(--primary);
}

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

.points-big {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.points-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.points-exchange-rate {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--success);
    text-align: center;
}

.points-exchange-rate p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.points-exchange-rate strong {
    color: var(--success);
}

.points-conversion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversion-result {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.conversion-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
}

.conversion-success i {
    font-size: 1.5rem;
}

.conversion-success p {
    margin: 0;
    font-weight: 500;
}

.floating-points {
    position: fixed;
    pointer-events: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    z-index: 9999;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transform-origin: center;
    font-size: 1.1rem;
}

.floating-points.animate {
    animation: floatToPoints 1.5s ease-out forwards;
}

@keyframes floatToPoints {
    0% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -100px) scale(1.2) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -200px) scale(0.8) translateY(-40px);
        opacity: 0;
    }
}

.floating-points i {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
    animation: starPulse 1.5s ease-out forwards;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px #fbbf24);
    }
    50% {
        transform: scale(1.3);
        filter: drop-shadow(0 0 12px #fbbf24);
    }
    100% {
        transform: scale(0.5);
        filter: drop-shadow(0 0 20px #fbbf24);
    }
}

.inventory-modal-content {
    max-width: 600px;
}

.inventory-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.inventory-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.inventory-item-icon {
    font-size: 2rem;
    color: var(--primary);
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.inventory-item-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.inventory-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.inventory-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.empty-inventory {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .inventory-modal-content {
        max-width: 95vw;
        width: 95vw;
    }

    .inventory-modal-body {
        max-height: 60vh;
    }

    .inventory-item {
        gap: 0.75rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .inventory-item-icon {
        min-width: 40px;
        font-size: 1.5rem;
    }

    .inventory-item-info h4 {
        font-size: 0.9rem;
    }

    .inventory-item-desc {
        font-size: 0.75rem;
    }

    .quantity-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .inventory-items {
        gap: 0.75rem;
    }
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    padding: 0 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    animation-delay: var(--delay, 0s);
}

.welcome-section {
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .features-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .welcome-card h2 {
        font-size: 1.5rem;
    }

    .welcome-card p {
        font-size: 1rem;
    }
}
