
                * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-navy: #1a237e;
            --primary-blue: #3f51b5;
            --light-blue: #e3f2fd;
            --accent-blue: #2196f3;
            --dark-navy: #0d47a1;
            --dark-blue: #172554;
            --success-green: #4caf50;
            --warning-orange: #ff9800;
            --error-red: #f44336;
            --text-dark: #212121;
            --text-light: #757575;
            --text-primary: #1f2937;
            --text-secondary: #6b7280;
            --white: #ffffff;
            --light-gray: #f8fafc;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
            min-height: 100vh;
            padding: 16px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .profile-header {
            background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
            color: var(--white);
            padding: 24px;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: var(--primary-navy);
            font-weight: bold;
            border: 3px solid var(--white);
            flex-shrink: 0;
        }

        .avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .header-info {
            flex: 1;
            min-width: 0;
        }

        .profile-name {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 4px;
            word-break: break-word;
        }

        .profile-email {
            opacity: 0.9;
            font-size: 14px;
            word-break: break-word;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        .card {
            background: var(--white);
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .info-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--light-gray);
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-label {
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .info-value {
            font-size: 15px;
            color: var(--text-dark);
            word-break: break-word;
        }

        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge.active {
            background: #e8f5e9;
            color: var(--success-green);
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
            color: var(--white);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary-blue);
            color: var(--primary-blue);
        }

        .btn-outline:hover {
            background: var(--primary-blue);
            color: var(--white);
        }

        .btn-sm {
            padding: 6px 14px;
            font-size: 13px;
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        .address-card {
            border: 2px solid var(--light-gray);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            position: relative;
        }

        .address-card.default {
            border-color: var(--primary-blue);
            background: var(--light-blue);
        }

        .address-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
            gap: 12px;
        }

        .address-type {
            font-weight: 600;
            color: var(--text-dark);
            text-transform: capitalize;
        }

        .address-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .address-body p {
            margin: 4px 0;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .order-item {
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .order-item:hover {
            border-color: var(--primary-blue);
            box-shadow: 0 4px 12px rgba(63, 81, 181, 0.1);
            transform: translateY(-2px);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .order-number {
            font-weight: 600;
            color: var(--primary-blue);
            font-size: 15px;
        }

        .order-status {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            text-transform: capitalize;
        }

        .order-status.pending {
            background: #fff3e0;
            color: var(--warning-orange);
        }

        .order-status.shipped {
            background: #e3f2fd;
            color: var(--accent-blue);
        }

        .order-status.delivered {
            background: #e8f5e9;
            color: var(--success-green);
        }

        .order-status.cancelled {
            background: #ffebee;
            color: var(--error-red);
        }

        .order-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 12px;
            font-size: 13px;
        }

        .order-product-item {
            display: flex;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--light-gray);
        }

        .order-product-item:last-child {
            border-bottom: none;
        }

        .order-product-image {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            object-fit: cover;
            background: var(--light-gray);
            flex-shrink: 0;
        }

        .order-product-info {
            flex: 1;
            min-width: 0;
        }

        .order-product-name {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
            font-size: 14px;
        }

        .order-product-details {
            font-size: 13px;
            color: var(--text-light);
        }

        .order-summary {
            background: var(--light-gray);
            padding: 16px;
            border-radius: 8px;
            margin-top: 16px;
        }

        .order-summary-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 14px;
        }

        .order-summary-row.total {
            border-top: 2px solid var(--primary-blue);
            margin-top: 8px;
            padding-top: 12px;
            font-weight: 600;
            font-size: 16px;
            color: var(--primary-blue);
        }

        .address-box {
            background: var(--light-gray);
            padding: 12px;
            border-radius: 6px;
            margin-top: 8px;
            font-size: 13px;
            line-height: 1.6;
        }

        .section-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-dark);
            margin: 20px 0 12px 0;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            padding: 16px;
            overflow-y: auto;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: var(--white);
            border-radius: 12px;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-light);
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .modal-close:hover {
            background: var(--light-gray);
        }

        .modal-body {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .form-input, .form-select {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e5e7eb;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s;
            font-family: inherit;
        }

        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
        }

        .alert {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .alert-success {
            background: #e8f5e9;
            color: var(--success-green);
        }

        .alert-error {
            background: #ffebee;
            color: var(--error-red);
        }

        .loader {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: var(--white);
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255,255,255,0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--light-gray);
            border-top-color: var(--primary-blue);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        @media (max-width: 768px) {
            body {
                padding: 12px;
            }

            .profile-header {
                padding: 20px;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .profile-name {
                font-size: 20px;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
            }

            .card {
                padding: 20px;
            }

            .card-title {
                font-size: 16px;
            }

            .order-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .address-actions {
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .avatar {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }

            .modal-content {
                margin: 0;
                border-radius: 0;
                max-height: 100vh;
            }

            .btn {
                width: 100%;
            }

            .address-actions {
                width: 100%;
                flex-direction: column;
            }

            .address-actions .btn-sm {
                width: 100%;
            }
        }
