/* =====================================================
   ERDAL BAKKAL - Mobil Sipariş Uygulaması
   ===================================================== */

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

:root {
    --primary: #1E3A5F;
    --primary-light: #2D5A87;
    --primary-dark: #0F2744;
    --accent: #FF6B35;
    --accent-light: #FF8A5C;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-xl);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

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

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

/* Toast */
.toast {
    position: fixed;
    bottom: calc(100px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-800);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9998;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Screen Base */
.screen {
    display: none;
    min-height: 100vh;
    padding-bottom: calc(100px + var(--safe-bottom));
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* =====================================================
   WELCOME SCREEN
   ===================================================== */
.welcome-screen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(40px + var(--safe-top)) 24px 40px;
    text-align: center;
    color: white;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-xl);
    font-size: 56px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.welcome-features {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.feature-text {
    font-size: 13px;
    opacity: 0.9;
}

.btn-start {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 64px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.btn-start:active {
    transform: scale(0.98);
}

/* =====================================================
   AUTH SCREEN
   ===================================================== */
.auth-screen {
    background: white;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: calc(60px + var(--safe-top)) 24px 40px;
    color: white;
    border-radius: 0 0 32px 32px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 15px;
}

.auth-tabs {
    display: flex;
    margin: -24px 24px 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.auth-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
}

.auth-tab.active {
    color: var(--primary);
    background: var(--gray-50);
}

.auth-form {
    padding: 32px 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input, .form-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    background: white;
    color: var(--gray-800);
    transition: all 0.2s;
    -webkit-appearance: none;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

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

.form-row .form-group {
    flex: 1;
}

.daire-check {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.daire-check.available { color: var(--success); }
.daire-check.taken { color: var(--danger); }

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-primary:not(:disabled):active {
    transform: scale(0.98);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-500);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* =====================================================
   MAIN SCREEN
   ===================================================== */
.main-header {
    background: white;
    padding: calc(16px + var(--safe-top)) 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 140px;
}

.header-address:active {
    background: var(--gray-200);
}

.header-address-icon {
    font-size: 16px;
}

.header-address span {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Search */
.search-container {
    padding: 16px 20px;
    background: white;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: 14px;
    transition: all 0.2s;
}

.search-bar:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--primary);
}

.search-bar-icon {
    font-size: 18px;
    color: var(--gray-400);
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    color: var(--gray-800);
}

.search-bar input:focus {
    outline: none;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

/* Categories */
.categories-section {
    padding: 20px;
    background: white;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex-shrink: 0;
    width: 85px;
    padding: 14px 10px;
    background: var(--gray-50);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-card:active {
    transform: scale(0.95);
}

.category-card.active {
    background: var(--primary);
    color: white;
}

.category-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.category-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

/* Products */
.products-section {
    padding: 20px;
    background: var(--gray-50);
    min-height: 400px;
}

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

.products-count {
    font-size: 14px;
    color: var(--gray-500);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.product-image {
    width: 100%;
    height: 110px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.out-of-stock {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-unit {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.btn-add {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.btn-add:active {
    transform: scale(0.9);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    border-radius: 10px;
    padding: 3px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.quantity-control span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

/* Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 16px 20px calc(16px + var(--safe-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 200;
    transition: transform 0.3s ease;
}

.cart-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.cart-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.cart-btn:active {
    transform: scale(0.98);
}

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

.cart-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 22px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: white;
    color: var(--accent);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

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

.cart-label {
    font-size: 12px;
    opacity: 0.9;
}

.cart-total {
    font-size: 17px;
    font-weight: 700;
}

.cart-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* =====================================================
   CART SCREEN
   ===================================================== */
.cart-screen {
    background: var(--gray-50);
}

.page-header {
    background: white;
    padding: calc(20px + var(--safe-top)) 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.btn-back {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.btn-back:active {
    background: var(--gray-200);
}

.page-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.cart-items {
    padding: 20px;
}

.cart-item {
    background: white;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-unit {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 10px;
}

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

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* Order Summary */
.order-summary {
    background: white;
    margin: 0 20px 20px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.order-summary h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row span:first-child {
    color: var(--gray-500);
}

.summary-row.total {
    border-top: 2px solid var(--gray-200);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 17px;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--primary);
}

.delivery-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-top: 16px;
}

.delivery-info-icon {
    font-size: 20px;
}

.delivery-info div {
    flex: 1;
}

.delivery-info strong {
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.delivery-info span {
    font-size: 12px;
    color: var(--gray-500);
}

/* Note Input */
.order-note {
    background: white;
    margin: 0 20px 20px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.order-note h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.order-note textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 80px;
}

.order-note textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Checkout Bar */
.checkout-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 16px 20px calc(16px + var(--safe-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 200;
}

.btn-checkout {
    width: 100%;
    background: var(--success);
    color: white;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-checkout:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-checkout:not(:disabled):active {
    transform: scale(0.98);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

.btn-secondary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
}

/* =====================================================
   SUCCESS SCREEN
   ===================================================== */
.success-screen {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 56px;
    animation: successPop 0.5s ease;
}

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

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.5;
}

.order-details {
    width: 100%;
    background: var(--gray-50);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.order-number {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.order-id {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.order-eta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: var(--gray-700);
}

.order-eta-icon {
    font-size: 20px;
}

.btn-home {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
}

/* =====================================================
   ORDERS SCREEN
   ===================================================== */
.orders-screen {
    background: var(--gray-50);
}

.orders-list {
    padding: 20px;
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

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

.order-card-no {
    font-weight: 700;
    color: var(--primary);
}

.order-card-date {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

.order-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.order-status.yeni { background: #DBEAFE; color: #1E40AF; }
.order-status.hazirlaniyor { background: #FEF3C7; color: #92400E; }
.order-status.yolda { background: #D1FAE5; color: #065F46; }
.order-status.teslim_edildi { background: #D1FAE5; color: #065F46; }
.order-status.iptal { background: #FEE2E2; color: #991B1B; }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.order-card-items {
    font-size: 13px;
    color: var(--gray-500);
}

.order-card-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

/* =====================================================
   PROFILE SCREEN
   ===================================================== */
.profile-screen {
    background: var(--gray-50);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: calc(40px + var(--safe-top)) 24px 40px;
    color: white;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-phone {
    opacity: 0.9;
    font-size: 14px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}

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

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.profile-menu {
    padding: 20px;
}

.menu-item {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.menu-item-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-item-text {
    flex: 1;
}

.menu-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-item-subtitle {
    font-size: 12px;
    color: var(--gray-400);
}

.menu-item-arrow {
    color: var(--gray-400);
    font-size: 18px;
}

.menu-item.danger .menu-item-icon {
    background: #FEE2E2;
}

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

/* =====================================================
   BOTTOM NAV
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s;
    background: none;
    border: none;
}

.nav-item.active {
    background: var(--gray-100);
}

.nav-item-icon {
    font-size: 22px;
    color: var(--gray-400);
}

.nav-item.active .nav-item-icon {
    color: var(--primary);
}

.nav-item-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
}

.nav-item.active .nav-item-text {
    color: var(--primary);
}

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

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

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

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-product {
    height: 200px;
    border-radius: 16px;
}

.skeleton-category {
    width: 85px;
    height: 80px;
    border-radius: 16px;
    flex-shrink: 0;
}
